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

format-patch usage

From
WMWilliam Morgan <wmorgan-git@masanjin.net>
Date
Jan 14, 2008, 00:40 UTC
Message-ID
<1200270370-sup-4560@south>
Hi all,
Two questions from a git neophyte about using format-patch:

First, what's the point of adding the Signed-off-by footer, if you're the author of the patch? I can see the utility of the committer adding this, as a record of who committed it, but if you wrote a patch and are submitting it to the list, then you've presumably "signed off", haven't you? Or is there some subtle distinction between exploratory patches and "real" patches being made?

Second, it seems like commentary about a patch can be placed after the "---" but before the "diff --git" lines. Is that correct? Is that accepted practice? It seems a little backwards to have the commit message first, then the commentary. Am I correct in assuming that git-apply ignores anything between those two lines, including the diff stat, and so that's the reason people put it there?

Thanks,
-- 
William <wmorgan-git@masanjin.net>
Next: Junio C Hamano
Message 1 of 2 in “format-patch usage”
  1. William MorganJan 14, 2008
  2. Junio C HamanoJan 14, 2008

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.