code sign-off/DCO for ovirt projects

Eric Blake eblake at redhat.com
Mon Apr 9 12:39:22 UTC 2012


On 04/08/2012 02:11 AM, Dan Kenigsberg wrote:

> Anything cooler we can do beyond putting
> 
> SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
> grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
> 
> at the bottom of .git/hooks/commit-msg ?

To fix 'git format-patch' (which is used by 'git send-email'), use:

git config format.signoff true

But that only adds it when you send a patch, not when you make the
commit.  You can also use 'git commit -s' to add the signoff when you
create the commit, but I don't know of a configuration bool that will
make that automatic, short of your hack on the commit-msg hook.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ovirt.org/pipermail/arch/attachments/20120409/55ac7add/attachment.sig>


More information about the Arch mailing list