forked from libgit2/pygit2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: merge auto generated and hand writen docs
- Loading branch information
Showing
13 changed files
with
146 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
********************************************************************** | ||
Configuration file | ||
********************************************************************** | ||
|
||
.. autoclass:: pygit2.Config | ||
:members: | ||
:show-inheritance: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
********************************************************************** | ||
Diff | ||
********************************************************************** | ||
|
||
|
||
A diff shows the changes between trees, an index or the working dir:: | ||
|
||
# Diff two trees | ||
>>> t0 = repo.head.tree | ||
>>> t1 = repo.head.parents[0].tree | ||
>>> diff = t1.diff(t0) | ||
>>> diff | ||
|
||
# Diff a tree with the index | ||
>>> tree = repo.head.tree | ||
>>> diff = tree.diff(repo.index) | ||
|
||
# Diff a tree with the current working dir | ||
>>> tree = repo.head.tree | ||
>>> diff = tree.diff() | ||
|
||
The interface for a diff:: | ||
|
||
Diff.changes -- Dict of 'files' and 'hunks' for every change | ||
Diff.patch -- a patch for every changeset | ||
Diff.merge -- Merge two Diffs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
********************************************************************** | ||
Errors | ||
********************************************************************** | ||
|
||
.. autoexception:: pygit2.GitError | ||
:members: | ||
:show-inheritance: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
********************************************************************** | ||
Utilities | ||
********************************************************************** | ||
|
||
.. automodule:: pygit2.utils | ||
:members: | ||
:show-inheritance: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters