diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-09-08 00:52:26 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-09-09 20:31:14 +0200 |
commit | 15f7b9b8d9bdfb68ca52d582be40cf6112464e77 (patch) | |
tree | 5f2654223d4e34d04e3630c0ee95fc02a8d6db4e /src/revwalk.h | |
parent | ef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff) | |
download | libgit2-15f7b9b8d9bdfb68ca52d582be40cf6112464e77.tar.gz |
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.h | 3 |
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 */ |