]>
git.wh0rd.org - home.git/blob - .bin/git-format-request-pull
9845b00789e81593273a284ffe55f5978da576eb
4 echo "Usage: git-request-pull-send-email <commit> [branch]"
21 url
=$
(git config
--get remote.origin.url
)
24 if [[ -z ${commit} ]] ||
[[ -n $3 ]] ; then
28 name
=$
(git config
--get user.name
)
29 email
=$
(git config
--get user.email
)
32 From: ${name} <${email}>
34 Subject: Pull request ${url##*/}
36 $(git request-pull ${commit} ${url} ${branch})
40 to
=$
(git config
--get sendemail.pullrequest
)
41 cc
=$
(git config
--get sendemail.to
)
43 git send-email
--to "${to}" --cc "${cc}" ${tmp}
45 echo git send-email --to \"${to}\" --cc \"${cc}\" ... 1>&2