Jonathan Nieder <jrnieder@xxxxxxxxx> writes: > Yep. One possibility would be to do something like the following (A): > > 1) advertise in the git-config(1) manpage that the GIT_CONFIG > environment variable only affects the behavior of the 'git config' > command > > 2) introduce an environment variable GIT_I_AM_PORCELAIN. (If doing > this, we could come up with a better name, but this is just an > illustration.) Set and export that envvar in git-sh-setup.sh. > When that environment variable is set, make git-config stop paying > attention to GIT_CONFIG. > > That way, git commands that happen to be scripts would not be > affected by the GIT_CONFIG setting any more. At the places you plan to update porcelains to set and export GIT_I_AM_PORCELAIN, you could unset GIT_CONFIG if set. Would that achieve the same goal? And you can stop there without doing 3 or 4, no? -- 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