Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-09-08 02:52:26 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2013-09-09 22:31:14 +0400
commit15f7b9b8d9bdfb68ca52d582be40cf6112464e77 (patch)
tree5f2654223d4e34d04e3630c0ee95fc02a8d6db4e /src/revwalk.h
parentef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff)
revwalk: allow simplifying by first-parent
When enabled, only the first parent of each commit will be queued, enabling a simple way of using first-parent simplification.
Diffstat (limited to 'src/revwalk.h')
-rw-r--r--src/revwalk.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/revwalk.h b/src/revwalk.h
index 22696dfcd..8c821d098 100644
--- a/src/revwalk.h
+++ b/src/revwalk.h
@@ -31,7 +31,8 @@ struct git_revwalk {
int (*get_next)(git_commit_list_node **, git_revwalk *);
int (*enqueue)(git_revwalk *, git_commit_list_node *);
- unsigned walking:1;
+ unsigned walking:1,
+ first_parent: 1;
unsigned int sorting;
/* merge base calculation */