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