From 149bb1e9e2137a57bfebf684ace38055d335c2e2 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 26 Oct 2014 15:37:15 -0700 Subject: [PATCH] index: Add missing 'tree' entry to diff_to_tree docstring argspec It's been missing since the original argspec was added with 5ed9eb4 (Add documentation for conflicts and fixup Index, 2014-07-10). --- pygit2/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygit2/index.py b/pygit2/index.py index 45b37a61b..61b7c9728 100644 --- a/pygit2/index.py +++ b/pygit2/index.py @@ -241,7 +241,7 @@ def diff_to_workdir(self, flags=0, context_lines=3, interhunk_lines=0): return Diff.from_c(bytes(ffi.buffer(cdiff)[:]), self._repo) def diff_to_tree(self, tree, flags=0, context_lines=3, interhunk_lines=0): - """diff_to_tree(flags=0, context_lines=3, interhunk_lines=0) -> Diff + """diff_to_tree(tree, flags=0, context_lines=3, interhunk_lines=0) -> Diff Diff the index against a tree