From f15af50ac558eacaf2fd4f641df52975ffd05145 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 25 Jun 2009 16:44:15 -0400 Subject: 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. --- git-bz | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3