diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-06-06 23:24:48 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-09-05 11:37:16 +0200 |
commit | e48f0a09e8f13a024d8f51c08b3c2b25e886ac7b (patch) | |
tree | d1deee164ffef9444e7907d8981f1524514be2c1 /tests | |
parent | bc409569f58a2c9c1c0393c923650bf84f159ddc (diff) |
GitRepository.diff: add 'text' option
For generating textual diffs. Useful for Pq - for example, the 'patch'
utility does not support git binary diffs.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_GitRepository.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 187712e8..5f0e3dd2 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -487,6 +487,8 @@ def test_diff(): True >>> len(repo.diff('HEAD~1', 'HEAD', 'testfile')) > 3 True + >>> len(repo.diff('HEAD~1', 'HEAD', 'testfile', text=True)) > 3 + True >>> len(repo.diff('HEAD~1', 'HEAD', 'filenotexist')) == 0 True """ |