diff options
| author | Russell Belfer <rb@github.com> | 2013-09-10 16:55:58 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-09-10 16:55:58 -0700 |
| commit | 6c38e60a00ad9133b98f6c6b4e73054226c1f88a (patch) | |
| tree | 880a99e5c8fbad758805b6e39578881005221004 /include | |
| parent | 68642bce4b5ec895b25f48f402e8537b069f1924 (diff) | |
| parent | 15f7b9b8d9bdfb68ca52d582be40cf6112464e77 (diff) | |
| download | libgit2-6c38e60a00ad9133b98f6c6b4e73054226c1f88a.tar.gz | |
Merge pull request #1838 from libgit2/cmn/first-parent
revwalk: allow simplifying by first-parent
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/revwalk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/revwalk.h b/include/git2/revwalk.h index 8bfe0b502..c59b79938 100644 --- a/include/git2/revwalk.h +++ b/include/git2/revwalk.h @@ -232,6 +232,14 @@ GIT_EXTERN(void) git_revwalk_sorting(git_revwalk *walk, unsigned int sort_mode); GIT_EXTERN(int) git_revwalk_push_range(git_revwalk *walk, const char *range); /** + * Simplify the history by first-parent + * + * No parents other than the first for each commit will be enqueued. + */ +GIT_EXTERN(void) git_revwalk_simplify_first_parent(git_revwalk *walk); + + +/** * Free a revision walker previously allocated. * * @param walk traversal handle to close. If NULL nothing occurs. |
