From: Jonathan Nieder Date: Tue, 30 Mar 2010 21:22:22 GMT Subject: Re: git check-attr in bare repositories Message-ID: <20100330212222.GA11192@progeny.tock> In-Reply-To: <19377.33747.838003.360864@winooski.ccs.neu.edu> Eli Barzilay wrote: > Well, using the index this way seems like a kind of a hack anyway, so > I'm not sure that there is any reason to do this. Most git commands do write out the tree they are working with to an (in-memory or on-disk) index, so using the index this way would make a warped kind of sense. But I agree that it is ugly. > If anything, I'd > like it if `check-attr' could just use the repository directly instead > of the index (or a work tree) in a bare repository. I think the right thing to do is to put this functionality in a new ‘git ls’ command. Maybe something like this: $ git ls --format='%p %a(crlf)' master -- '*.txt' some/path/foo.txt crlf:input some/path/bar.txt crlf some/path/other.txt !crlf yet/another/path.txt $ I can not promise I will find time before the weekend to work on it. I wouldn’t be unhappy if someone else gets to it first. Thanks for the explanations. Jonathan