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

Re: git format-patch --signoff

From
MMMichał Mirosław <mirq-linux@rere.qmqm.pl>
Date
Oct 21, 2021, 23:37 UTC
Message-ID
<YXH5rKsjPIeWSGTE@qmqm.qmqm.pl>
In-Reply-To
<xmqqo87ihurk.fsf@gitster.g>
On Thu, Oct 21, 2021 at 03:34:39PM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> Michał Mirosław <mirq-linux@rere.qmqm.pl> writes:
> 
> > I just noticed that `git format-patch --signoff` adds the 'Signed-off-by'
> > line even if the exact same line is already present in the commit message.
> > Could this be avoided in the tool?
> >
> > git version 2.30.2
> >
> > Best Regards
> > Michał Mirosław
> 
> The rule should be "avoid adding the same sign-off as the one at the
> end".  In other words, as a record of the flow of patch custody,
[...]
> This test hasn't changed since it was written in Feb 2013, and I
> think 2.30.2 is recent enough to conform to the rule to pass this
> test.

The test indeed works correctly, and I couldn't reproduce the effect on a fresh git repo. I finally took a look with hexdump on the output: the culprit was a UTF-8 non-breaking space -- indistinguishable on a terminal from a normal space. I'm not sure what to think about this... Sorry for the noise.

Best Regards Michał Mirosław

Previous: Junio C Hamano
Message 5 of 5 in “git format-patch --signoff”
  1. Michał MirosławOct 21, 2021
  2. brian m. carlsonOct 21, 2021
  3. Michał MirosławOct 21, 2021
  4. Junio C HamanoOct 21, 2021
  5. Michał MirosławOct 21, 2021

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.