From 6bfdf93201ea413affd4c8fbe406ea2b4a7c1b6b Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 28 Feb 2010 20:29:02 +0100 Subject: Commit.iter_items: Will not restrict comits to the ones containing changes to paths anymore as it will only append '--' if paths are actually given. Added unittest to verify this --- lib/git/objects/commit.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/git/objects/commit.py') diff --git a/lib/git/objects/commit.py b/lib/git/objects/commit.py index 271b8f75..4d0f808d 100644 --- a/lib/git/objects/commit.py +++ b/lib/git/objects/commit.py @@ -165,8 +165,13 @@ class Commit(base.Object, Iterable, diff.Diffable, utils.Traversable): """ options = {'pretty': 'raw', 'as_process' : True } options.update(kwargs) + + args = list() + if paths: + args.extend(('--', paths)) + # END if paths - proc = repo.git.rev_list(rev, '--', paths, **options) + proc = repo.git.rev_list(rev, args, **options) return cls._iter_from_process_or_stream(repo, proc, True) def iter_parents(self, paths='', **kwargs): -- cgit v1.2.1