Commit 8d49203ed72ff99b43c3ca9fe29b9cbb4b7790fe

Stefan Sperling 2018-09-20T15:07:49

allocate less tips by default in commit graph

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/commit_graph.c b/lib/commit_graph.c
index 21160d6..c88e30d 100644
--- a/lib/commit_graph.c
+++ b/lib/commit_graph.c
@@ -90,7 +90,7 @@ struct got_commit_graph {
 	/* Copy of known branch tips for fetch_commits_from_open_branches(). */
 	struct got_commit_graph_branch_tip *tips;
 	size_t ntips;
-#define GOT_COMMIT_GRAPH_MIN_TIPS 100	/* minimum amount of tips to allocate */
+#define GOT_COMMIT_GRAPH_MIN_TIPS 10	/* minimum amount of tips to allocate */
 
 	/* Path of tree entry of interest to the API user. */
 	char *path;