chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tg-create.sh: Introduce topgit.{to,cc,bcc} config options
[topgit.git]
/
tg-create.sh
diff --git
a/tg-create.sh
b/tg-create.sh
index 0db1cf376bdde093396a96cfd8df0eec8a96fd00..d196e4f5fa56bbba8de8034a9c5366c478879f49 100644
(file)
--- a/
tg-create.sh
+++ b/
tg-create.sh
@@
-104,6
+104,9
@@
author="$(git var GIT_AUTHOR_IDENT)"
author_addr="${author%> *}>"
{
echo "From: $author_addr"
author_addr="${author%> *}>"
{
echo "From: $author_addr"
+ ! header="$(git config topgit.to)" || echo "To: $header"
+ ! header="$(git config topgit.cc)" || echo "Cc: $header"
+ ! header="$(git config topgit.bcc)" || echo "Bcc: $header"
echo "Subject: [PATCH] $1"
echo
cat <<EOT
echo "Subject: [PATCH] $1"
echo
cat <<EOT