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

Re: [PATCH] pull: pass --signoff/--no-signoff to "git merge"

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 12, 2017, 11:08 UTC
Message-ID
<xmqq7ew0zkqv.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<xmqqefq92mgw.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> 	get_signoff () {
> 		git cat-file commit "$1" | sed -n -e '/^Signed-off-by: /p'
> 	}
>
> Some may say "cat-file can fail, and having it on the LHS of a pipe
> hides its failure", advocating for something like:
>
> 	get_signoff () {
> 		git cat-file commit "$1" >sign-off-temp &&
> 		sed -n -e '/^Signed-off-by: /p' sign-off-temp
> 	}
Actually we should use git itself for things like this, e.g.
	git -C dst show -s --pretty='format:%(trailers)' HEAD >actual &&
	test_cmp expect actual
Previous: W. Trevor KingNext: W. Trevor King
Message 6 of 11 in “pull: pass --signoff/--no-signoff to "git merge"”
  1. pull: pass --signoff/--no-signoff to "git merge"W. Trevor King, Oct 11, 2017
  2. Junio C HamanoOct 12, 2017
  3. W. Trevor KingOct 12, 2017
  4. Junio C HamanoOct 12, 2017
  5. W. Trevor KingOct 12, 2017
  6. Junio C HamanoOct 12, 2017
  7. pull: pass --signoff/--no-signoff to "git merge"W. Trevor King, Oct 12, 2017
  8. W. Trevor KingOct 12, 2017
  9. Junio C HamanoOct 12, 2017
  10. pull: pass --signoff/--no-signoff to "git merge"W. Trevor King, Oct 12, 2017
  11. Junio C HamanoOct 13, 2017

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.