summaryrefslogtreecommitdiff
path: root/include/git2/sys
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2021-08-26 05:29:34 -0700
committerlhchavez <lhchavez@lhchavez.com>2021-08-26 05:29:34 -0700
commit63f08e4258122d6f6ea1f04ec8c08779bf300b6c (patch)
tree36375d662c59faa07a647e697bc4c9150b642dda /include/git2/sys
parent2988f7367cda7337e2b293fb12814d272ef9c33b (diff)
downloadlibgit2-63f08e4258122d6f6ea1f04ec8c08779bf300b6c.tar.gz
Make the defaultable fields defaultable
Also, add `git_commit_graph_writer_options_init`!
Diffstat (limited to 'include/git2/sys')
-rw-r--r--include/git2/sys/commit_graph.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/sys/commit_graph.h b/include/git2/sys/commit_graph.h
index 01cf8d1bf..67d95469c 100644
--- a/include/git2/sys/commit_graph.h
+++ b/include/git2/sys/commit_graph.h
@@ -115,12 +115,13 @@ typedef struct {
/**
* The number of commits in level N is less than X times the number of
- * commits in level N + 1.
+ * commits in level N + 1. Default is 2.
*/
float size_multiple;
/**
* The number of commits in level N + 1 is more than C commits.
+ * Default is 64000.
*/
size_t max_commits;
} git_commit_graph_writer_options;
@@ -129,7 +130,6 @@ typedef struct {
#define GIT_COMMIT_GRAPH_WRITER_OPTIONS_INIT \
{ \
GIT_COMMIT_GRAPH_WRITER_OPTIONS_VERSION, \
- GIT_COMMIT_GRAPH_SPLIT_STRATEGY_SINGLE_FILE, 2.0f, 64000 \
}
/**