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

Re: [Q] Mark files for later commit?

From
Johan Herland <johan@herland.net>
Date
Mar 29, 2011, 07:38 UTC
Message-ID
<201103290938.41528.johan@herland.net>
In-Reply-To
<4D91858F.7030404@drmicha.warpmail.net>
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.

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".

> 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".

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Michael J GruberNext: Michael J Gruber
Message 4 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.