Linus Torvalds [off-list ref] writes:
If you use the GIT_DIR environment variable approach, it assumes that all
filenames you give it are absolute and acts the way it always did before.
Comments? Like? Dislike?
Comments: Wouldn't that mean git-*-scripts would not benefit from this
because git-sh-setup would set GIT_DIR for you even if
you don't?
Even if you do not have to do discovery, it may make
more sense to do the pathname translation (making them
all relative to the project root) for consistency.
If you can do "cd drivers && git-diff-files ../net"
that would be very useful. More realistically, people
would very much appreciate if stripping the leading ./ in
"find . -type f -print0 | xargs -0 git-blah-command".
Like: Yes, you finally saw the light ;-).
Dislike: I believe I was one of the original proponent for this
kind of thing, so no.