Re: refining .gitignores

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

 




On Thu, 15 Nov 2007, Bruce Stephens wrote:
>
> They are in the index.  What I want is a list of files which are known
> to git, which are matched by the default rules (in particular the
> .gitignore files).

Ahh.

*All* the .gitignore rules are purely about files that git does not 
already know about. Once git tracks a pathname, the ignore rules simply 
do not matter.

Files that are in the index are simply never ignored. There's no way to 
ignore them, and in fact, the whole "git add -f" thing is a way to add 
files to the index and override the exclude rules - at which point git 
then tracks them regardless of any such exclude rules.

			Linus
-
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]

  Powered by Linux