-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgit-send-email.sh
executable file
·33 lines (26 loc) · 1 KB
/
git-send-email.sh
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
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
# -*- coding: UTF-8 -*-
echo [+] the following is the command to configure send mail.
echo [+] - if you want to sent the last N commits as patches, append "-N" to the command
echo [+] - add -vN flag to send the Nth version of the patch
echo [+] you should also able to pass the *.patch file, but not checked yet
if [[ $1 = "usb-serial" ]]; then
cmd="git send-email --annotate \
--to=\"Johan Hovold <[email protected]>\" \
--to=\"Greg Kroah-Hartman <[email protected]>\" \
--cc=\"[email protected]\" \
--cc=\"Daniele Palmas <[email protected]>\" "
fi
if [[ $1 = "net" ]]; then
cmd="git send-email --annotate \
--to=\"Bjørn Mork <[email protected]>\" \
--to=\"David S. Miller <[email protected]>\" \
--to=\"Jakub Kicinski <[email protected]>\" \
--cc=\"[email protected]\" \
--cc=\"[email protected]\" \
--cc=\"Daniele Palmas <[email protected]>\" "
fi
echo "-- cut here --"
echo "$cmd"
echo "-- cut here --"
echo "[+] rembember -vN for version, sign-off, and changelogs"