summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJohn Cai <johncai86@gmail.com>2022-02-18 18:23:12 +0000
committerJunio C Hamano <gitster@pobox.com>2022-02-18 11:21:46 -0800
commitac4e58cab9a946d4c45f1db5ee7c79b6fb14bd67 (patch)
tree5dd34db257e0cfc2d02d6de65e4442b89822337c /commit.c
parenta2c75526d21939d5d4e36dbbd6093a5e2c14c39f (diff)
cat-file: introduce batch_mode enum to replace print_contents
A future patch introduces a new --batch-command flag. Including --batch and --batch-check, we will have a total of three batch modes. print_contents is the only boolean on the batch_options sturct used to distinguish between the different modes. This makes the code harder to read. To reduce potential confusion, replace print_contents with an enum to help readability and clarity. Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: John Cai <johncai86@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions