From b54b9399920375f0bab14ff8495c0ea3f5fa1c33 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 22 Jan 2015 12:40:07 +0100 Subject: Overhauled all tutorials, and placed them in a unit-test. That way they are protected from regression. Fixes #239 --- git/diff.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'git/diff.py') diff --git a/git/diff.py b/git/diff.py index dfee00e2..37882369 100644 --- a/git/diff.py +++ b/git/diff.py @@ -42,7 +42,7 @@ class Diffable(object): def diff(self, other=Index, paths=None, create_patch=False, **kwargs): """Creates diffs between two items being trees, trees and index or an - index and the working tree. + index and the working tree. It will detect renames automatically. :param other: Is the item to compare us with. @@ -68,8 +68,6 @@ class Diffable(object): :return: git.DiffIndex :note: - Rename detection will only work if create_patch is True. - On a bare repository, 'other' needs to be provided as Index or as as Tree/Commit, or a git command error will occour""" args = list() -- cgit v1.2.1