git signoff+ and review+
abartlet at samba.org
Fri Jun 5 00:06:56 UTC 2020
I wondered if we could have an agreed set of aliases included in Samba?
I know that would be some duplication, but I see a big advantage in
taking advantage of the per-repo git aliases to ensure everyone
working on Samba has common tools.
That would in turn mean that we can document our processes on the wiki
using the same tools we use, rather than the current 'do what I say,
not what I do' or more charitably 'these are the documented steps, but
Samba wizards do $THIS day-to-day'.
Things like review and sign-off scripts, Douglas's 'git mr-branch' and
even the 'git autobuild' hook (with the review check) should be set up
standard, just as we set up the commit check for whitespace (which has
done so much for ending whitespace wars!).
We would need to choose the command names well - they need to make
sense for newbies as well as experienced developers, but this could
make it a little easier for the next new developer.
Do you think we could collaborate on this?
On Wed, 2020-06-03 at 16:35 +0200, Andreas Schneider via samba-
> I've pushed some improvements to the tools ...
> On Tuesday, 24 March 2020 11:00:11 CEST Andreas Schneider via samba-
> > 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 , 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  and 'git review+' at . Just
> > put them
> > in
> > ~/bin/
> > and git will find them.
> > I hope they will be useful to others.
> > Andreas
> >  https://github.com/newren/git-filter-repo/
> > 
> > 
Andrew Bartlett https://samba.org/~abartlet/
Authentication Developer, Samba Team https://samba.org
Samba Developer, Catalyst IT
More information about the samba-technical