0
Completed

Ignore everything beneath

adrien 3 years ago updated by Thomas Singer 3 years ago 6

Currently it is only possible to ignore files explicitly or using a pattern. Git is able to ignore a whole directory, we are currently doing this by manually editing the .gitignore file.
Would it be possible to add an option to ignore everything beneath the parent folder of the selected file?
In Sourcetree there is this option that is very helpful, and it also gives the choice for all parent folder in the hierarchy which is also very useful.
Thanks

Have you tried to select the parent directory in SmartGit and ignore that?

Hello, thanks indeed I didn't knowthat it was possible this way.
I believed it was not implemented since I was expecting to see it in the Ignore window and I don't show Directories in the Files view.
Do you think that would be possible to integrate it in the Ignore window?

Also it is impossible to Ignore a directory if a file in this directory is staged.

+1
Completed

Thanks, this will be implemented in 21.1 preview build 17064. You will have to set the low-level property ignore.supportTrackedDir to true.

I tested it in 21.1 preview 4 #17067 and it didn't seem to work.
Although I have an error when setting the low-level property ignore.supportTrackedDir the value is correctly set to true (The bug has been reported) but I still can't ignore a directory with staged files or missing directories in it.

Please provide detailed steps how to reproduce the problem on smartgit@syntevo.com. Thanks in advance.