diff options
author | Michael Trier <mtrier@gmail.com> | 2008-12-15 20:47:19 -0500 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2008-12-15 20:47:19 -0500 |
commit | 6ba8b8b91907bd087dfe201eb0d5dae2feb54881 (patch) | |
tree | 0f553a341cdde34d8a92030965b8219a36945308 /lib/git/commit.py | |
parent | 5e062f4d043234312446ea9445f07bd9dc309ce3 (diff) | |
download | gitpython-6ba8b8b91907bd087dfe201eb0d5dae2feb54881.tar.gz |
Added in new properties Diff.renamed, Diff.rename_from, and Diff.rename_to
Diffstat (limited to 'lib/git/commit.py')
-rw-r--r-- | lib/git/commit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/commit.py b/lib/git/commit.py index 4aee1280..e35090a1 100644 --- a/lib/git/commit.py +++ b/lib/git/commit.py @@ -204,13 +204,13 @@ class Commit(LazyMixin): if b: paths.insert(0, b) paths.insert(0, a) - text = repo.git.diff(full_index=True, *paths) + text = repo.git.diff('-M', full_index=True, *paths) return diff.Diff.list_from_string(repo, text) @property def diffs(self): if not self.parents: - d = self.repo.git.show(self.id, full_index=True, pretty='raw') + d = self.repo.git.show(self.id, '-M', full_index=True, pretty='raw') if re.search(r'diff --git a', d): if not re.search(r'^diff --git a', d): p = re.compile(r'.+?(diff --git a)', re.MULTILINE | re.DOTALL) |