git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Configuration overrides via environment variable
@ 2008-01-28  1:08 David Symonds
  2008-01-28 20:58 ` Jan Hudec
  0 siblings, 1 reply; 4+ messages in thread
From: David Symonds @ 2008-01-28  1:08 UTC (permalink / raw)
  To: Git Mailing List

Hi,

I'm using Git in some scripts, and wanted to get its colorised output
even when it is not going to a tty. I don't want to permanently change
~/.gitconfig or the per-repo config; I just want to set color.status
(and perhaps others) to "always" for a one-off run. I suppose I could
munge the config files, storing the previous value and restoring it
later, but that's messy.

Ideally, an environment variable like GIT_EXTRA_CONFIG or something
would be nice, so I could just do:

GIT_EXTRA_CONFIG="color.status=always" git status | ...

Thoughts? Does this already exist, and I've overlooked it?


Dave.

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

end of thread, other threads:[~2008-01-28 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28  1:08 Configuration overrides via environment variable David Symonds
2008-01-28 20:58 ` Jan Hudec
2008-01-28 22:58   ` Jakub Narebski
2008-01-28 23:11     ` David Symonds

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).