Merge remote-tracking branch 'cholin/features/diff_docs'
This commit is contained in:
@@ -17,6 +17,12 @@ A diff shows the changes between trees, an index or the working dir::
|
|||||||
# Diff a tree with the current working dir
|
# Diff a tree with the current working dir
|
||||||
>>> diff = head.tree.diff()
|
>>> diff = head.tree.diff()
|
||||||
|
|
||||||
|
# Get all patches for a diff
|
||||||
|
>>> t0 = repo.revparse_single('HEAD^').tree
|
||||||
|
>>> t1 = repo.revparse_single('HEAD~3').tree
|
||||||
|
>>> diff = t0.diff(t1)
|
||||||
|
>>> patches = [p for p in diff]
|
||||||
|
|
||||||
|
|
||||||
The Diff type
|
The Diff type
|
||||||
====================
|
====================
|
||||||
|
@@ -227,7 +227,7 @@ PyTypeObject DiffIterType = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
PyDoc_STRVAR(Diff_patch__doc__, "Patch.");
|
PyDoc_STRVAR(Diff_patch__doc__, "Patch diff string.");
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
Diff_patch__get__(Diff *self)
|
Diff_patch__get__(Diff *self)
|
||||||
|
Reference in New Issue
Block a user