]> git.ipfire.org Git - thirdparty/git.git/commit - commit-graph.h
commit-graph: collapse parameters into flags
authorDerrick Stolee <dstolee@microsoft.com>
Wed, 12 Jun 2019 13:29:38 +0000 (06:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jun 2019 18:20:53 +0000 (11:20 -0700)
commit5af803945212af875670582ff153ee05ec368b83
tree8bb9b6ccb72fc7f8024428991eabf07c31554f68
parente103f7276f0d809c2935ebc1a3d68c6bbfaed23d
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>
builtin/commit-graph.c
builtin/commit.c
builtin/gc.c
commit-graph.c
commit-graph.h