Sending patches by mail
suggest changeSuppose you have many commits against a project (here ulogd2, whose official branch is git-svn) and you want to send that patch series to the mailing list devel@netfilter.org. From the root of the repository:
git format-patch --stat -p --raw --signoff --subject-prefix="ULOGD PATCH" -o /tmp/ulogd2/ -n git-svn
git send-email --compose --no-chain-reply-to --to devel@netfilter.org /tmp/ulogd2/
The first command writes a numbered series of patch messages, with a diffstat, under /tmp/ulogd2/. The second opens your editor so you can compose an introduction. To keep the messages from being chained as replies to each other:
git config sendemail.chainreplyto false
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents