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).
This commit is contained in:
W. Trevor King
2014-10-26 15:37:15 -07:00
parent b8efdde626
commit 149bb1e9e2

View File

@@ -241,7 +241,7 @@ class Index(object):
return Diff.from_c(bytes(ffi.buffer(cdiff)[:]), self._repo) return Diff.from_c(bytes(ffi.buffer(cdiff)[:]), self._repo)
def diff_to_tree(self, tree, flags=0, context_lines=3, interhunk_lines=0): 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 Diff the index against a tree