summaryrefslogtreecommitdiff
path: root/src/commit_list.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2016-07-21 01:24:12 -0600
committerCarlos Martín Nieto <cmn@dwim.me>2016-10-06 11:04:55 +0200
commit6708618c10f509ed1d22298628bf578a514d2624 (patch)
treedd3e080aef27d0c70fb89be1f42acf7aa0889aff /src/commit_list.h
parent565fb8dcd41eefb373ec6dc71dc2f19884d29cdc (diff)
downloadlibgit2-6708618c10f509ed1d22298628bf578a514d2624.tar.gz
revwalk: get closer to git
We had some home-grown logic to figure out which objects to show during the revision walk, but it was rather inefficient, looking over the same list multiple times to figure out when we had run out of interesting commits. We now use the lists in a smarter way. We also introduce the slop mechanism to determine when to stpo looking. When we run out of interesting objects, we continue preparing the walk for another 5 rounds in order to make it less likely that we miss objects in situations with complex graphs.
Diffstat (limited to 'src/commit_list.h')
-rw-r--r--src/commit_list.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commit_list.h b/src/commit_list.h
index a6967bcef..9746c2801 100644
--- a/src/commit_list.h
+++ b/src/commit_list.h
@@ -28,6 +28,7 @@ typedef struct git_commit_list_node {
uninteresting:1,
topo_delay:1,
parsed:1,
+ added:1,
flags : FLAG_BITS;
unsigned short in_degree;