diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2009-06-25 16:44:15 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2009-06-25 16:44:15 -0400 |
commit | f15af50ac558eacaf2fd4f641df52975ffd05145 (patch) | |
tree | 3a09474db207551af5024ea2adf522703c0c0c5f | |
parent | 1e9ba4fd837474ef2791137403c6cf75dd0ce82b (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-x | git-bz | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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") |