On Sat, 31 Mar 2007, Junio C Hamano wrote:
If a curious user has the environment variable set to something
other than the file GIT_INDEX_FILE points at, almost everything
will break. This should instead be a command line parameter to
tell these plumbing commands to write the result in the named
file, to prevent stupid mistakes.
I agree, that sounds sane. In general, we should probably support
command-line parameters for most of those things, rather than force the
use of environment parameters (the way we already do with "--author", for
example).
Linus