Re: Why does git track directory listed in .gitignore/".git/info/exclude"?

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

 



Hi Linus,

On 24/01/2008, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
[...]
> > Isn't it fine to include a directory name as
> >
> >    $directory_name/
> >     instead of
> >    $directory_name/*
>
> Heh.
>
> I think your problem is that "/" itself. By adding it, the exclude
> information does *not* match the directory entry itself (because the
> directory entry itself is called just "xen-3.1.0-src" - note no slash!),
> and since you added it, it also doesn't match any names _under_ that
> directory exactly.

Got that.
Thanks a lot for explaining that to me Linus.

Best Regards,
                --Pradeep
>
> So what you *should* have done is to just tell git to ignore the directory
> named "xen-3.1.0-src", and you'd have been ok.
>
> Using "xen-3.1.0-src/*" works too, but it is heavy-handed and unnecessary.
>
>                 Linus
>


-- 
--
pradeep singh rautela
http://eagain.wordpress.com
http://emptydomain.googlepages.com
-
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