summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1242642)
raw | patch | inline | side by side (parent: 1242642)
author | Mike McCormack <mike@codeweavers.com> | |
Mon, 6 Mar 2006 13:10:21 +0000 (22:10 +0900) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 7 Mar 2006 01:04:07 +0000 (17:04 -0800) |
Entries may be added to the config file as follows:
[format]
headers = "Organization: CodeWeavers\nTo: wine-patches
<wine-patches@winehq.org>\n"
Signed-off-by: Junio C Hamano <junkio@cox.net>
[format]
headers = "Organization: CodeWeavers\nTo: wine-patches
<wine-patches@winehq.org>\n"
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-format-patch.sh | patch | blob | history |
diff --git a/git-format-patch.sh b/git-format-patch.sh
index 2bd26395ecc687e01c7915b5ba13e9576749143b..bbd2e5532f73ec2018e261f4dbf81b027329bc87 100755 (executable)
--- a/git-format-patch.sh
+++ b/git-format-patch.sh
done >$series
me=`git-var GIT_AUTHOR_IDENT | sed -e 's/>.*/>/'`
+headers=`git-repo-config --get format.headers`
case "$outdir" in
*/) ;;
process_one () {
perl -w -e '
-my ($keep_subject, $num, $signoff, $commsg) = @ARGV;
+my ($keep_subject, $num, $signoff, $headers, $commsg) = @ARGV;
my ($signoff_pattern, $done_header, $done_subject, $done_separator, $signoff_seen,
$last_was_signoff);
s/^\[PATCH[^]]*\]\s*//;
s/^/[PATCH$num] /;
}
+ if ($headers) {
+ print "$headers\n";
+ }
print "Subject: $_";
$done_subject = 1;
next;
}
print "\n---\n\n";
close FH or die "close $commsg pipe";
-' "$keep_subject" "$num" "$signoff" $commsg
+' "$keep_subject" "$num" "$signoff" "$headers" $commsg
git-diff-tree -p $diff_opts "$commit" | git-apply --stat --summary
echo