# send-guix-patchset.sh -rw-r--r-- 1.1 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# First, figure out how many commits will be in your patchset. Do this
# to create the patches, along with a cover letter to explain the patchset.
# Replace ${n} with the number of patches.
git format-patch -${n} -o outgoing/ --cover-letter

# Next, send the cover letter to the mailing list. This command will open
# up ${EDITOR} to edit the cover letter; modify the blurb and subject line
# to your liking, then exit to begin the sending process.
git send-email outgoing/0000-cover-letter.patch --to=guix-patches@gnu.org -a

# Remove the cover letter.
rm outgoing/0000-cover-letter.patch

# Now, wait for the Debbugs mailer to reply. The reply subject will contain
# a bug number; use this as the value of ${bugnum} in this command to
# send the patches to your new issue:
git send-email outgoing/*.patch --to=${bugnum}@debbugs.gnu.org

# And remove the patches.
rm -r outgoing/

# If you need to send a v2 patchset, you should amend the commits, then
# resend the entire thing; since we don't need to create an issue this time,
# we can do it with a single command:
git send-email -v2 -${n} --to=guix-patches@debbugs.gnu.org