git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Taylor Blau <me@ttaylorr.com>
To: Terry Warren <trwarren@me.com>
Cc: git@vger.kernel.org
Subject: Re: git config file
Date: Mon, 1 Feb 2021 12:08:37 -0500	[thread overview]
Message-ID: <YBg1lbg6koRG3aBA@nand.local> (raw)
In-Reply-To: <46D52CDE-15F2-4DA6-8E89-56E0EF86FFF4@me.com>

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

      reply	other threads:[~2021-02-01 17:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 14:19 git config file Terry Warren
2021-02-01 17:08 ` Taylor Blau [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YBg1lbg6koRG3aBA@nand.local \
    --to=me@ttaylorr.com \
    --cc=git@vger.kernel.org \
    --cc=trwarren@me.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).