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

Re: [Q] Mark files for later commit?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Mar 29, 2011, 07:45 UTC
Message-ID
<4D918E2E.4000206@drmicha.warpmail.net>
In-Reply-To
<201103290938.41528.johan@herland.net>
Johan Herland venit, vidit, dixit 29.03.2011 09:38:
Show 9 quoted lines
> On Tuesday 29 March 2011, Michael J Gruber wrote:
>> Note that you can share
>> notes when you set up refspecs etc in a push/pull based workflow. (I'm
>> not sure how well we support merging/pulling notes refs yet.)
> 
> Since v1.7.4, you can use "git notes merge" for merging notes ref. It's not 
> yet integrated with "pull", though, so typically you want to fetch it to a 
> different ref name, and then manually "git notes merge" that into the 
> original notes ref.

Yes, but what I meant with "well" was: If I merge regular branches, do the notes get merged automatically? And the answer is "no", and as you explain above, "git notes merge" copes with that (and with merging notes for the same commit).

> E.g. if you want to sync "refs/notes/foo" with remote "bob", you can "git 
> fetch bob refs/notes/foo:refs/notes/bobs_foo", and then
> merge them with "git notes --ref=foo merge bobs_foo".
Longing for that refs/ layout overhaul...
Show 5 quoted lines
>> This does not work well in a patch/e-mail-based workflow.
> 
> ...although there have been mailing list discussions on getting notes added 
> to "git format-patch" output (after the "---"), and then picked up again by 
> "git am".
So, here my "not well" was even overly positive ;)
Michael
Previous: Johan HerlandNext: Junio C Hamano
Message 5 of 9 in “[Q] Mark files for later commit?”
  1. Daniel NyströmMar 29, 2011
  2. Junio C HamanoMar 29, 2011
  3. Michael J GruberMar 29, 2011
  4. Johan HerlandMar 29, 2011
  5. Michael J GruberMar 29, 2011
  6. Junio C HamanoMar 29, 2011
  7. Daniel NyströmMar 29, 2011
  8. Michael J GruberMar 29, 2011
  9. Daniel NyströmMar 29, 2011

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.