summaryrefslogtreecommitdiff
path: root/commit-graph.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2020-09-18 02:59:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-18 04:55:50 (GMT)
commit98bb796191f7234c88b7a97f587d37ffbd130289 (patch)
tree0b6f5fb4d243a488297f713b6d5b95f93c604d64 /commit-graph.h
parent59f0d5073fd9f0497b9ff9a48fb3a7a8d82d1f9d (diff)
downloadgit-98bb796191f7234c88b7a97f587d37ffbd130289.zip
git-98bb796191f7234c88b7a97f587d37ffbd130289.tar.gz
git-98bb796191f7234c88b7a97f587d37ffbd130289.tar.bz2
commit-graph: rename 'split_commit_graph_opts'
In the subsequent commit, additional options will be added to the commit-graph API which have nothing to do with splitting. Rename the 'split_commit_graph_opts' structure to the more-generic 'commit_graph_opts' to encompass both. Likewise, rename the 'flags' member to instead be 'split_flags' to clarify that it only has to do with the behavior implied by '--split'. Suggested-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.h')
-rw-r--r--commit-graph.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/commit-graph.h b/commit-graph.h
index d9acb22..b7914b0 100644
--- a/commit-graph.h
+++ b/commit-graph.h
@@ -105,11 +105,11 @@ enum commit_graph_split_flags {
COMMIT_GRAPH_SPLIT_REPLACE = 2
};
-struct split_commit_graph_opts {
+struct commit_graph_opts {
int size_multiple;
int max_commits;
timestamp_t expire_time;
- enum commit_graph_split_flags flags;
+ enum commit_graph_split_flags split_flags;
};
/*
@@ -120,12 +120,12 @@ struct split_commit_graph_opts {
*/
int write_commit_graph_reachable(struct object_directory *odb,
enum commit_graph_write_flags flags,
- const struct split_commit_graph_opts *split_opts);
+ const struct commit_graph_opts *opts);
int write_commit_graph(struct object_directory *odb,
struct string_list *pack_indexes,
struct oidset *commits,
enum commit_graph_write_flags flags,
- const struct split_commit_graph_opts *split_opts);
+ const struct commit_graph_opts *opts);
#define COMMIT_GRAPH_VERIFY_SHALLOW (1 << 0)