diff options
author | John Cai <johncai86@gmail.com> | 2022-02-18 18:23:12 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-18 11:21:46 -0800 |
commit | ac4e58cab9a946d4c45f1db5ee7c79b6fb14bd67 (patch) | |
tree | 5dd34db257e0cfc2d02d6de65e4442b89822337c /walker.h | |
parent | cat-file: rename cmdmode to transform_mode (diff) | |
download | tgif-ac4e58cab9a946d4c45f1db5ee7c79b6fb14bd67.tar.xz |
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 'walker.h')
0 files changed, 0 insertions, 0 deletions