27 lines
776 B
Diff
27 lines
776 B
Diff
From e6dadfe44934a26978b97f2e951d72d04165e339 Mon Sep 17 00:00:00 2001
|
|
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
Date: Wed, 28 Jul 2010 15:39:19 +0200
|
|
Subject: [PATCH] Attach git am -able patches
|
|
|
|
---
|
|
git-send-bugzilla.pl | 3 ++-
|
|
1 files changed, 2 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/git-send-bugzilla.pl b/git-send-bugzilla.pl
|
|
index e40402e..7fe5693 100755
|
|
--- a/git-send-bugzilla.pl
|
|
+++ b/git-send-bugzilla.pl
|
|
@@ -69,7 +69,8 @@ sub get_patch_info {
|
|
$comment .= "\n---\n" unless $comment eq '';
|
|
$comment .= `git diff-tree --stat --no-commit-id $rev1 $rev2`;
|
|
|
|
- my $patch = `git diff-tree -p $rev1 $rev2`;
|
|
+ my $range = $rev2 ? "..$rev2" : " -1";
|
|
+ my $patch = `git format-patch --stdout $rev1$range`;
|
|
|
|
return ($description, $comment, $patch);
|
|
}
|
|
--
|
|
1.7.1
|
|
|