chiark / gitweb /
tg-create.sh: Introduce topgit.{to,cc,bcc} config options
[topgit.git] / tg-create.sh
index 0db1cf376bdde093396a96cfd8df0eec8a96fd00..d196e4f5fa56bbba8de8034a9c5366c478879f49 100644 (file)
@@ -104,6 +104,9 @@ author="$(git var GIT_AUTHOR_IDENT)"
 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