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

Re: [PATCH 2/3] init-db.c: normalize env var handling.

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 20, 2005, 04:45 UTC
Message-ID
<Pine.LNX.4.58.0504192142040.6467@ppc970.osdl.org>
In-Reply-To
<mailbox-1242-1113971319-971926@spoon>
On Tue, 19 Apr 2005, Zach Welch wrote:
Show 14 quoted lines
>
> This patch applies on top of:
>         [PATCH 1/3] init-db.c: cleanup comments
> 
>  init-db.c |   11 +++--------
>  1 files changed, 3 insertions(+), 8 deletions(-)
> 
> Signed-Off-By: Zach Welch <zw@superlucidity.net>
> 
> Normalize init-db environment variable handling, allowing the creation
> of object directories with something other than DEFAULT_DB_ENVIRONMENT.
> 
> --- a/init-db.c
> +++ b/init-db.c
For future reference, this is in the wrong order.

You should have "checkin comment" first, then "signed-off-by", then a line with three dashes, and then "administrative trivia".

Ie I'd much rather see the email look like
	Normalize init-db environment variable handling, allowing the creation
	of object directories with something other than DEFAULT_DB_ENVIRONMENT.
	
	Signed-Off-By: Zach Welch <zw@superlucidity.net>
	---
	This patch applies on top of:
	        [PATCH 1/3] init-db.c: cleanup comments
	
	 init-db.c |   11 +++--------
	 1 files changed, 3 insertions(+), 8 deletions(-)
	
	.. actual patch goes here ..

since otherwise I'll just have to edit it that way. I like seeing the administrative stuff (diffstat etc), but I don't want to have it in the commit message, and that's exactly what the "---" marker is for - my tools will automatically cut it off as if it was a signature (or the beginning of the patch).

		Linus
Previous: Zach WelchNext: Zach Welch
Message 2 of 4 in “init-db.c: normalize env var handling.”
  1. 2/3 init-db.c: normalize env var handling.Zach Welch, Apr 20, 2005
  2. Linus TorvaldsApr 20, 2005
  3. Zach WelchApr 20, 2005
  4. Linus TorvaldsApr 20, 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.