Re: Git attributes ignored for root directory

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

 



On 05/10/2011 20:35, Junio C Hamano wrote:
What if I do not want to say things about the "content" of the
directory but about the directory itself? This is exactly my case.

Oh, that is totally different. We do not store directories, and they do
not have attributes, period.

While that is true (yet many beg git to natively support empty dirs…), `.gitignore` does deal with directories. As you quoted,

> If the pattern ends with a slash, it is removed for the purpose
> of the following description, but it would only find a match with
> a directory. In other words, foo/ will match a directory foo and
> paths underneath it

Isn't applying the same logic to `.gitattributes` be the most straightforward solution? Also code-wise, I suppose.

Bye,

--
Gioele Barabucci <gioele@xxxxxxxxx>
--
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]