From 67ae5b2708ea78bf3d9eaa21cb4f0096cfeb4012 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 25 Sep 2008 20:14:51 +0200 Subject: [PATCH] tg import: Construct actually proper .topmsg file --- tg-import.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tg-import.sh b/tg-import.sh index 2a24fbb..424f518 100644 --- a/tg-import.sh +++ b/tg-import.sh @@ -42,7 +42,11 @@ git update-index --ignore-submodules --refresh || exit get_commit_msg() { commit="$1" - git log -1 --pretty=format:"From: %an <%ae>%n%n%s%n%n%b" "$commit" + headers="" + ! header="$(git config topgit.to)" || headers="$headers%nTo: $header" + ! header="$(git config topgit.cc)" || headers="$headers%nCc: $header" + ! header="$(git config topgit.bcc)" || headers="$headers%nBcc: $header" + git log -1 --pretty=format:"From: %an <%ae>$headers%nSubject: %s%n%n%b" "$commit" } get_branch_name() -- 2.30.2