Re: Does anyone use git-notes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Scott Chacon wrote:
> 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@xxxxxxxxxxxxxxx
  http://mid.gmane.org/201003042321.36240.trast@xxxxxxxxxxxxxxx

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]