Re: git 1.7.10.msysgit.1: different behaviour in ".gitignore" and ".git/info/exclude"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hannes,

thanks a lot - it was my fault and you're right.
It works with "(*)/" very well!

Horrido,
Thomas


> Am 5/30/2012 10:43, schrieb Thomas Wichern:
>> If you have a ".gitignore" - file that contains the pattern "/(*)/", a
>> directory that matches the pattern is ignored completely.
>> 
>> If you put the same pattern into the ".git/info/exclude" - file, the
>> pattern does not work - these directories still show up.
>> 
>> I expected that all directories anywhere the repository that match the
>> pattern to be ignored.

> The first slash in the pattern means: Match only in this directory, not in
> subdirectories. For patterns in .git/info/exclude, "this directory" is the
> top-level of the repository.

>> Am I doing something wrong? Is the pattern not correct?

> Perhaps you need "(*)/", i.e., without the first slash.

> -- Hannes



--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]