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

Re: [PATCH] Added -d and -e options to the "git" script.

From
A Large Angry SCM <gitzilla@gmail.com>
Date
Sep 19, 2005, 14:42 UTC
Message-ID
<432ECE5A.7040703@gmail.com>
In-Reply-To
<u5tvf0xb0fp.fsf@lysator.liu.se>
David Kågedal wrote:
Show 7 quoted lines
> A Large Angry SCM <gitzilla@gmail.com> writes:
> 
>>David Kågedal wrote:
>>>These flags override the GIT_DIR and EDITOR environment variables.
>>>
>>[Patch snipped]
>>
[...]
Show 8 quoted lines
> 
> So please disregard the -e part of my patch for now.  You are free to
> disregard the -d part as well, but I think that makes some kind of
> sense.
> 
> And If we go down this path, maybe flags for other GIT_* environment
> variables should be settable with git command line flags too?
> 
Please no!

There are better methods of setting environment variables than an endless set of command options. Use the env command or you own (personal) command wrapper instead.

Previous: David KågedalNext: David Kågedal
Message 5 of 7 in “Add "--git-dir" flag to git-rev-parse”
  1. Linus TorvaldsSep 18, 2005
  2. Added -d and -e options to the "git" script.David Kågedal, Sep 19, 2005
  3. A Large Angry SCMSep 19, 2005
  4. David KågedalSep 19, 2005
  5. A Large Angry SCMSep 19, 2005
  6. David KågedalSep 19, 2005
  7. Matthias UrlichsSep 19, 2005

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.