diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2019-06-12 06:29:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-12 11:20:53 -0700 |
commit | 5af803945212af875670582ff153ee05ec368b83 (patch) | |
tree | 8bb9b6ccb72fc7f8024428991eabf07c31554f68 /builtin/commit.c | |
parent | commit-graph: return with errors during write (diff) | |
download | tgif-5af803945212af875670582ff153ee05ec368b83.tar.xz |
commit-graph: collapse parameters into flags
The write_commit_graph() and write_commit_graph_reachable() methods
currently take two boolean parameters: 'append' and 'report_progress'.
As we update these methods, adding more parameters this way becomes
cluttered and hard to maintain.
Collapse these parameters into a 'flags' parameter, and adjust the
callers to provide flags as necessary.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
-rw-r--r-- | builtin/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index b9ea7222fa..b001ef565d 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1670,7 +1670,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix) "not exceeded, and then \"git reset HEAD\" to recover.")); if (git_env_bool(GIT_TEST_COMMIT_GRAPH, 0) && - write_commit_graph_reachable(get_object_directory(), 0, 0)) + write_commit_graph_reachable(get_object_directory(), 0)) return 1; repo_rerere(the_repository, 0); |