From 6dd14d799e4ecfe542f3b41a3e905e33429efd24 Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Mon, 20 May 2013 15:38:49 +0200 Subject: [PATCH] Fixed: Use GIT_DIFF_NORMAL as default flag for Diff --- pygit2/repository.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygit2/repository.py b/pygit2/repository.py index bf0e835..3d8521b 100644 --- a/pygit2/repository.py +++ b/pygit2/repository.py @@ -31,7 +31,7 @@ from string import hexdigits # Import from pygit2 from _pygit2 import Repository as _Repository from _pygit2 import Oid, GIT_OID_HEXSZ, GIT_OID_MINPREFIXLEN -from _pygit2 import GIT_CHECKOUT_SAFE_CREATE +from _pygit2 import GIT_CHECKOUT_SAFE_CREATE, GIT_DIFF_NORMAL from _pygit2 import Reference, Tree, Commit, Blob @@ -133,8 +133,8 @@ class Repository(_Repository): # # Diff # - def diff(self, a=None, b=None, cached=False, flags=0, context_lines=3, - interhunk_lines=0): + def diff(self, a=None, b=None, cached=False, flags=GIT_DIFF_NORMAL, + context_lines=3, interhunk_lines=0): """ Show changes between the working tree and the index or a tree, changes between the index and a tree, changes between two trees, or