diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2019-08-05 10:02:39 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-05 14:31:24 -0700 |
commit | 39d88318569188c0544c3c0f8207f2e1b1829e60 (patch) | |
tree | ba525e2b565e8c36d79be3b0d1666b1af90f1c19 /builtin/commit-graph.c | |
parent | t5318-commit-graph: use 'test_expect_code' (diff) | |
download | tgif-39d88318569188c0544c3c0f8207f2e1b1829e60.tar.xz |
commit-graph: turn a group of write-related macro flags into an enum
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Acked-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
-rw-r--r-- | builtin/commit-graph.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/commit-graph.c b/builtin/commit-graph.c index 38027b83d9..64eccde314 100644 --- a/builtin/commit-graph.c +++ b/builtin/commit-graph.c @@ -154,7 +154,7 @@ static int graph_write(int argc, const char **argv) struct string_list *commit_hex = NULL; struct string_list lines; int result = 0; - unsigned int flags = COMMIT_GRAPH_PROGRESS; + enum commit_graph_write_flags flags = COMMIT_GRAPH_WRITE_PROGRESS; static struct option builtin_commit_graph_write_options[] = { OPT_STRING(0, "object-dir", &opts.obj_dir, @@ -192,9 +192,9 @@ static int graph_write(int argc, const char **argv) if (!opts.obj_dir) opts.obj_dir = get_object_directory(); if (opts.append) - flags |= COMMIT_GRAPH_APPEND; + flags |= COMMIT_GRAPH_WRITE_APPEND; if (opts.split) - flags |= COMMIT_GRAPH_SPLIT; + flags |= COMMIT_GRAPH_WRITE_SPLIT; read_replace_refs = 0; |