git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git config file
@ 2021-02-01 14:19 Terry Warren
  2021-02-01 17:08 ` Taylor Blau
  0 siblings, 1 reply; 2+ messages in thread
From: Terry Warren @ 2021-02-01 14:19 UTC (permalink / raw)
  To: git

can git environment variables (such as GIT_TRACE) be added to the git config file? The reason I am asking this question is that I am trying to troubleshoot a problem that only occurs when running git from within an IDE. Running from the command line shell works as expected.

thanks for any response
Terry Warren

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

* Re: git config file
  2021-02-01 14:19 git config file Terry Warren
@ 2021-02-01 17:08 ` Taylor Blau
  0 siblings, 0 replies; 2+ messages in thread
From: Taylor Blau @ 2021-02-01 17:08 UTC (permalink / raw)
  To: Terry Warren; +Cc: git

Hi Terry,

On Mon, Feb 01, 2021 at 06:19:01AM -0800, Terry Warren wrote:
> can git environment variables (such as GIT_TRACE) be added to the git
> config file? The reason I am asking this question is that I am trying
> to troubleshoot a problem that only occurs when running git from
> within an IDE. Running from the command line shell works as expected.

There isn't a way to define the GIT_TRACE variable, nor is there a
general way to define arbitrary environment variables that should be set
at the beginning of every Git process.

You can use the new trace2 sub-system, which does have configuration
variables that you can hook into:

  https://git-scm.com/docs/git-config#Documentation/git-config.txt-trace2normalTarget

(beginning at the above link and continuing down). Alternatively, if
your IDE supports it, you could set an environment variable by setting
your git executable to be something like

  env GIT_TRACE=xyz /path/to/git


> thanks for any response
> Terry Warren

Thanks,
Taylor

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

end of thread, other threads:[~2021-02-01 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 14:19 git config file Terry Warren
2021-02-01 17:08 ` Taylor Blau

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).