Hi all.
To have an email sent after every commit, I've put the following command in
.git/hooks/post-commit:
rm -f /tmp/git-commit.patch ; git-format-patch --stdout -s `git log
--pretty=oneline | awk '{print $1}' | sed -n '2p'` > /tmp/git-commit.patch ;
git-send-email --no-signed-off-by-cc --to XXX --from YYY /tmp/git-commit.patch
; rm -f /tmp/git-commit.patch
and it works, indeed.
However, it's quite tricky.
Doesn't exist any way to make it simpler ?
Regards,
Claudio
-
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