git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] GIT_TRACE: show which built-in/external commands are executed

From
MLMatthias Lederhofer <matled@gmx.net>
Date
Jun 25, 2006, 16:10 UTC
Message-ID
<E1FuXBk-0001SG-3n@moooo.ath.cx>
In-Reply-To
<Pine.LNX.4.63.0606251607090.29667@wbgn013.biozentrum.uni-wuerzburg.de>
Show 11 quoted lines
> Hi,
> 
> On Sun, 25 Jun 2006, Matthias Lederhofer wrote:
> 
> > With the environment variable GIT_TRACE set git will show
> >  - alias expansion
> >  - built-in command execution
> >  - external command execution
> > on stderr.
> 
> Nice.
Thanks :)
> P.S.: Now we only have to convert all "git-" invocations in the scripts to
> "git " invocations so we can benefit from it. But that would mean two 
> forks instead of one for the non-builtins. Hmm.
Why do we not use this policy:

git-* is guaranteed to be the normal command without any strange alias expansion, default parameters or something else a script does not like to be changed in the commands. So all scripts use git-*, this will prevent a double exec. The path to git-* should be obtained using git --exec-path in the beginnig.

git <command> is to be used by the user if he wants aliases, default parameters and other fancy stuff.

Using this policy the user can always get the normal behaviour and it is possible to shadown built-in commands etc.

Previous: Petr BaudisNext: Johannes Schindelin
Message 7 of 10 in “[RFC] git --trace: trace command execution”
  1. Matthias LederhoferJun 25, 2006
  2. Junio C HamanoJun 25, 2006
  3. Matthias LederhoferJun 25, 2006
  4. GIT_TRACE: show which built-in/external commands are executedMatthias Lederhofer, Jun 25, 2006
  5. Johannes SchindelinJun 25, 2006
  6. Petr BaudisJun 25, 2006
  7. Matthias LederhoferJun 25, 2006
  8. Johannes SchindelinJun 25, 2006
  9. Matthias LederhoferJun 28, 2006
  10. Jakub NarebskiJun 29, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.