Re: [PATCH 4/4] Documentation/gitignore: explain how to un-ignore part of a directory

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

 



2011/11/7 Jonathan Nieder <jrnieder@xxxxxxxxx>:
> From: Johannes Sixt <j6t@xxxxxxxx>
> Date: Tue, 5 Apr 2011 23:15:54 +0200
>
> Trying to whitelist a single file pattern in a directory that I was
> otherwise content to ignore, if I try
>
>        /m4/
>        !/m4/virt-*.m4
>
> then 'git add' will keep warning me that I have to use -f.  That is
> because ignoring a directory is much different than ignoring all files
> in a directory, when it comes to later negation patterns:
>
>        /m4/*
>        !/m4/virt-*.m4
>

gitignore.txt is also referred in sparse checkout. And (un)fortunately
the former also works in sparse checkout. I don't know, may be you
could put this in a subsection or something reference-able so we could
mention in sparse checkout document that this part of gitignore.txt
does not apply to sparse checkout?
-- 
Duy
--
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]