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

Re: Git Notes Usage

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Mar 8, 2010, 20:59 UTC
Message-ID
<4B95652E.6070802@drmicha.warpmail.net>
In-Reply-To
<d411cc4a1003081152j5b9f3028wa230b5e1d22a36ae@mail.gmail.com>
Scott Chacon venit, vidit, dixit 08.03.2010 20:52:
> I've been trying to write up the git-notes functionality a bit and I'm
> a tad confused about the remote workflow.  To share them, is it only
> do-able by pushing via the full refspec (ie: 'git push origin
> refs/notes/*:refs/notes/*')?  Likewise to fetch them from a server?

You can also write this into the config... OK, seriously: I think for "typical usage" one stores others' notes in a different place anyways, e.g. I store Thomas' list-notes in refs/remotes/trast/notes/ so that they don't interfer with my own notes.

I don't think that teaching --notes to git push (a la --tags) with a standard refspec would help in many cases.

> Also, if two people write notes into the same namespace at the
> same time, how does one merge them?  Is the only way to do so to
> actually checkout the notes branch into your working directory and
> merge the notes trees?
I'd say every merge needs a working directory, so, yes.
Michael
Previous: Scott ChaconNext: Junio C Hamano
Message 2 of 3 in “Git Notes Usage”
  1. Scott ChaconMar 8, 2010
  2. Michael J GruberMar 8, 2010
  3. Junio C HamanoMar 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.