summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")