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

Re: Does anyone use git-notes?

From
Thomas Rast <trast@student.ethz.ch>
Date
Aug 25, 2010, 18:52 UTC
Message-ID
<201008252052.37524.trast@student.ethz.ch>
In-Reply-To
<AANLkTin=VXp2BU0vhTLUy6MpJ7spXRs1dZC1wygoN6T-@mail.gmail.com>
Scott Chacon wrote:
Show 6 quoted lines
> I would like to write a post on how to use them, but I'm a bit
> confused as to how people actually use them on a day to day basis.  I
> appears to me in trying to work out a flow for them that the lack of
> an ability to merge them makes them very difficult to use for anything
> practical.  Can someone share with me how they use them and what the
> cycle is?

I run a cronjob that downloads mail from gmane and fetches git.git, then attempts to correlate mail with commits. The results are at

  git://repo.or.cz/git/trast.git notes/terse notes/full
I have previously posted about this at e.g.
  http://mid.gmane.org/200902091508.11460.trast@student.ethz.ch
  http://mid.gmane.org/201003042321.36240.trast@student.ethz.ch

though I should point out that it no longer tries to apply the patches as outlined in the first post; this was simply way too expensive.

I also use it when heavily editing a patch series to tack little reminders on my fixup patches. I have

  $ git config alias.fixup
  !sh -c 'r=$1; git commit -m"fixup! $(git log -1 --pretty=%s $r)"' -
so I usually do
  # hack
  git add -p
  git fixup HEAD~3
  git notes add -m 'fix foo'

which combined with notes.rewriteRef=refs/notes/* (and notes.rewriteMode left at the default of 'concatenate') means that I end up having a little list of reminders what changed since the last revisions. I then simply clear them out before starting a new round.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Joshua JensenNext: Junio C Hamano
Message 3 of 9 in “Does anyone use git-notes?”
  1. Scott ChaconAug 25, 2010
  2. Joshua JensenAug 25, 2010
  3. Thomas RastAug 25, 2010
  4. Junio C HamanoAug 25, 2010
  5. Junio C HamanoAug 25, 2010
  6. Tor ArntsenAug 26, 2010
  7. Michael J GruberAug 26, 2010
  8. Will PalmerAug 26, 2010
  9. Jon SeymourAug 26, 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.