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