I really love git notes, it allows to add notes to a git commit without changing the commit.

Now that the Samba project is experimenting quasi systematic patch review, I using the notes to track patches that I submited, when and the status of the review.

Problem is that rebase loose the notes and that's anoying so I just did this hook to keep them


# Keep the notes 
while read old new other; do
        git notes copy $old $new 2>/dev/null

In order to use just save this snipet as hooks/post-rewrite in the .git folder