git signoff+ and review+

Andreas Schneider asn at samba.org
Tue Mar 24 10:00:11 UTC 2020


Hello,

as a daily task I have to sign commits and also add my review tag after 
inspection.

As git-filter-branch has been deprecated and the replacement is git-filter-
repo [1], I've written some really nice python tools to make my life easier.

In a git repository I and do:

git signoff+            # Add my signoff to commits I authored.
git signoff+ --by metze # Sign commits authored by metze,
                        # because he forgot :-)
git review+             # Add my RB tag to commits I'm not the
                        # author of or which has my sign tag
git review+ --by metze  # Add review by metze


metze is a shortcut, the name you specify is actually a file name placed in

~/.review

so metze is actually the file ~/.review/metze and the content is his name and 
mail address.

You can find 'git signoff+' at [2] and 'git review+' at [2]. Just put them in

~/bin/

and git will find them.


I hope they will be useful to others.



	Andreas


[1] https://github.com/newren/git-filter-repo/
[2] https://git.cryptomilk.org/users/asn/dotfiles.git/tree/git/bin/git-signoff+
[3] https://git.cryptomilk.org/users/asn/dotfiles.git/tree/git/bin/git-review+

-- 
Andreas Schneider                      asn at samba.org
Samba Team                             www.samba.org
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D





More information about the samba-technical mailing list