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
David Kågedal <davidk@lysator.liu.se>
Date
Sep 19, 2005, 14:24 UTC
Message-ID
<u5tvf0xb0fp.fsf@lysator.liu.se>
In-Reply-To
<432EC7D6.6080105@gmail.com>
A Large Angry SCM <gitzilla@gmail.com> writes:
Show 8 quoted lines
> David Kågedal wrote:
>> These flags override the GIT_DIR and EDITOR environment variables.
>>
> [Patch snipped]
>
> An option for GIT_DIR maybe since it's a Git environment variable but a 
> command line option to change the EDITOR _environment_ variable is NOT 
> appropriate for git.

Yeah, I should have separated those two so that the GIT_DIR option could be accepted on its own. And it should maybe have a --git-dir= log form as well.

The reason I did -e too was simply that I needed it for the same reason I needed -d. I wanted to run git with specific values for GIT_DIR and EDITOR without having to setenv them in emacs. But the EDITOR trick I'm using is a hack and should be replaced anyway. (I use EDITOR=cat to get access to the default commit message with comments from 'git commit').

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?

-- 
David Kågedal
Previous: A Large Angry SCMNext: A Large Angry SCM
Message 4 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.