Linus Torvalds [off-list ref] writes:
On Wed, 4 Jan 2006, Darrin Thompson wrote:
quoted
Would it be hard to make git-ls-files optionally do this?
Something like the appended may or may not be what you're looking for..
Linus
Not to mention test scripts, I suspect that making this the
default would break existing callers including the famous
"git-init-db && git-add ." pattern. The other commonplace use
is git-status, which might benefit from this option. If we are
going to use it in git-status, we may want to give them trailing
slashes to make them stand out, though.