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

Re: git format-patch should honor notes

From
Thomas Rast <trast@student.ethz.ch>
Date
Dec 8, 2010, 11:15 UTC
Message-ID
<201012081215.40809.trast@student.ethz.ch>
In-Reply-To
<20101207221151.GC1036@sigill.intra.peff.net>
Jeff King wrote:
Show 8 quoted lines
> > My workflow is that I post patch series for upstream review via 'git
> > send-email'.  Often, that results in feedback that requires me to
> > amend/rebase my series, and post a v2 or v3 of the series.  By adding
> > 'git config notes.rewriteRef refs/notes/commits', I can add notes that
> > will carry across my rebase, and remind me what I changed in v2 (for
> > example, git notes add -m 'v2: fix foo, per mail xyz@example.com').
> 
> Yeah, that is a workflow that some others have mentioned using here,
Incidentally it's what I wrote the rewriteRef support for :-)
Show 8 quoted lines
> too. And I think there is general agreement that notes should go after
> the "---" in format-patch. We just need a working patch.
> 
> Thomas posted one in February:
> 
>   http://article.gmane.org/gmane.comp.version-control.git/140819
> 
> But there were some issues and it never got polished.

I got pretty frustrated with gfp being rather brittle. It is very hard to insert anything anywhere in the output stream in such a way that the output is not affected in any *other* scenario where this option is disabled.

So I think a good angle of attack if you want to hack around on this would be to clean up gfp so that it becomes easier to work on, and/or come up with a better/cleaner place to insert the notes support than I had.

That being said, the version I still use just shifts around a linefeed after the ---, IIRC, and so far nobody complained about that in practice ;-)

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Johan Herland
Message 8 of 8 in “git format-patch should honor notes”
  1. Eric BlakeDec 7, 2010
  2. Junio C HamanoDec 7, 2010
  3. Jeff KingDec 7, 2010
  4. Michael J GruberDec 8, 2010
  5. Johan HerlandDec 8, 2010
  6. Michael J GruberDec 8, 2010
  7. Johan HerlandDec 8, 2010
  8. Thomas RastDec 8, 2010

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.