summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2009-06-25 16:44:15 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2009-06-25 16:44:15 -0400
commitf15af50ac558eacaf2fd4f641df52975ffd05145 (patch)
tree3a09474db207551af5024ea2adf522703c0c0c5f
parent1e9ba4fd837474ef2791137403c6cf75dd0ce82b (diff)
Pass -M to git-format-patch
Passing -M to git-format-patch when creating patches means that renames will be shown as renames, increasing reviewability of the resulting patches.
-rwxr-xr-xgit-bz5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index cacb34c..f6b1b54 100755
--- a/git-bz
+++ b/git-bz
@@ -328,7 +328,10 @@ def get_commits(commit_or_revision_range):
return commits
def get_patch(commit):
- return git.format_patch(commit.id + "^.." + commit.id, stdout=True)
+ # We could pass through -M as an option, but I think you basically always
+ # want it; showing renames as renames rather than removes/adds greatly
+ # improves readability.
+ return git.format_patch(commit.id + "^.." + commit.id, stdout=True, M=True)
def get_body(commit):
return git.log(commit.id + "^.." + commit.id, pretty="format:%b")