git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* GIT_CONFIG - what's the point?
@ 2016-04-01  0:54 Matthew Persico
  2016-04-01 11:19 ` Christian Couder
  2016-04-01 12:38 ` Jeff King
  0 siblings, 2 replies; 7+ messages in thread
From: Matthew Persico @ 2016-04-01  0:54 UTC (permalink / raw)
  To: git

Greetings.

Given the GIT_CONFIG environment variable can change 'git config'
behaves, it stands to reason that if GIT_CONFIG is defined, then ALL
git commands obey the value of GIT_CONFIG and use that file for config
info.

As a test, exported GIT_CONFIG=/tmp/ohm, copied ~/.gitconfig to
/tmp/ohm, moved ~/.gitconfig to ~/.gitconfig.hold and then tried git
st, where 'st' is an alias for status in my config file.

No dice. git st was unrecognized.

So, what's the point of GIT_CONFIG if only git-config uses it? Or did
I miss a step?

Thanks

-- 
Matthew O. Persico

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-03 20:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-01  0:54 GIT_CONFIG - what's the point? Matthew Persico
2016-04-01 11:19 ` Christian Couder
2016-04-01 12:38 ` Jeff King
2016-04-01 14:31   ` Matthew Persico
2016-04-01 14:53     ` Jeff King
2016-04-01 17:28     ` SZEDER Gábor
2016-04-03 20:11       ` Matthew Persico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).