Page 1 of 1

How to esclude all git folders from the index?

Posted: Thu Dec 20, 2018 12:32 pm
by aborruso
Hi,
is it possible to remove from the index all the git folders?

If yes, how to?

Thank you

Re: How to esclude all git folders from the index?

Posted: Thu Dec 20, 2018 1:14 pm
by therube
What does a git folder look like?

Anyhow, maybe something can be working out with, Tools | Options | Indexes -> Exclude.

Re: How to esclude all git folders from the index?

Posted: Thu Dec 20, 2018 1:54 pm
by aborruso
What does a git folder look like?
It's "folder: .git"

Code: Select all

Anyhow, maybe something can be working out with, Tools | Options | Indexes -> Exclude.
I know of "Tools | Options | Indexes -> Exclude", but how to add this kind of folder

Thank you

Re: How to esclude all git folders from the index?

Posted: Thu Dec 20, 2018 3:23 pm
by NotNull
aborruso wrote: Thu Dec 20, 2018 1:54 pm I know of "Tools | Options | Indexes -> Exclude", but how to add this kind of folder
There's a Add Filter button. You can define
.git
as a filter.

Re: How to esclude all git folders from the index?

Posted: Thu Dec 20, 2018 3:47 pm
by aborruso
Thank you very much

Re: How to esclude all git folders from the index?

Posted: Thu Dec 20, 2018 4:24 pm
by aborruso
NotNull wrote: Thu Dec 20, 2018 3:23 pm There's a Add Filter button. You can define
.git
as a filter.
I have inserted regex:"^.git$", but it does not work

Re: How to esclude all git folders from the index?

Posted: Thu Dec 20, 2018 5:28 pm
by vanisk
Tools->Options->Exclude->Add Filter
and type
.git

[Edit: I tried your regex in filter and it still works for me]
I Added: regex:^.git$

Re: How to esclude all git folders from the index?

Posted: Thu Dec 20, 2018 7:56 pm
by aborruso
vanisk wrote: Thu Dec 20, 2018 5:28 pm [Edit: I tried your regex in filter and it still works for me]
I Added: regex:^.git$
It works, but it should also work with quotes regex:"^.git$"

Thank you