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

Re: git-commit: allow From: line to be entered in commit message

From
sean <seanlkml@sympatico.ca>
Date
Jan 13, 2006, 17:54 UTC
Message-ID
<BAYC1-PASMTP0918AE856AD34E35597CA4AE260@CEZ.ICE>
In-Reply-To
<7v64oo9gc7.fsf@assigned-by-dhcp.cox.net>

On Fri, 13 Jan 2006 09:40:24 -0800 Junio C Hamano <junkio@cox.net> wrote:

Show 8 quoted lines
> Have you two known that more than one environment variables can
> be set for one-shot command execution?
> 
> 	$ GIT_AUTHOR_NAME="$author" \
> 	  GIT_AUTHOR_EMAIL="$email" git commit -F .msgfile
> 
> would give these environment variables for this "git commit"
> without affecting the later commands.
No, I didn't know that; thanks for the lesson.
Show 6 quoted lines
> 
> Not that this really matters, since the above example was an
> excerpt of my suggestion about how to do this in a script,
> somehow made to look as if it was a suggestion about running
> things by hand from the command line...
> 

I said quite a few times now this has nothing to do with running git-commit from a script. This is just a simple request to not require the use of environment variables to pass useful parameters.

I really don't understand your gripe on this one, when someone else suggested using a command line parameter for author information you said:

<quote>
> 	--from="Some User <some.user@theoffice.org>"
>

I agree this would be more useful, direct, easy to understand and explain way to do it.

</quote>

So do you still agree with that, would you accept a patch? Or do you have some fundamental reason to think that environment variables are a better way to pass information in this case?

Cheers, Sean

Previous: Junio C HamanoNext: Junio C Hamano
Message 14 of 16 in “git-commit: allow From: line to be entered in commit message”
  1. seanJan 12, 2006
  2. seanJan 12, 2006
  3. Junio C HamanoJan 12, 2006
  4. Andreas EricssonJan 12, 2006
  5. Junio C HamanoJan 12, 2006
  6. seanJan 13, 2006
  7. seanJan 13, 2006
  8. Junio C HamanoJan 13, 2006
  9. seanJan 13, 2006
  10. Junio C HamanoJan 13, 2006
  11. seanJan 13, 2006
  12. Artem KhodushJan 13, 2006
  13. Junio C HamanoJan 13, 2006
  14. seanJan 13, 2006
  15. Junio C HamanoJan 13, 2006
  16. Johannes SchindelinJan 13, 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.