]> git.ipfire.org Git - thirdparty/git.git/commit
cat-file: rename cmdmode to transform_mode
authorJohn Cai <johncai86@gmail.com>
Fri, 18 Feb 2022 18:23:11 +0000 (18:23 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Feb 2022 19:21:46 +0000 (11:21 -0800)
commita2c75526d21939d5d4e36dbbd6093a5e2c14c39f
tree0e2828c675ae7669ac104e023ec2a9992857d884
parent38062e73e009f27ea192d50481fcb5e7b0e9d6eb
cat-file: rename cmdmode to transform_mode

In the next patch, we will add an enum on the batch_options struct that
indicates which type of batch operation will be used: --batch,
--batch-check and the soon to be  --batch-command that will read
commands from stdin. --batch-command mode might get confused with
the cmdmode flag.

There is value in renaming cmdmode in any case. cmdmode refers to how
the result output of the blob will be transformed, either according to
--filter or --textconv. So transform_mode is a more descriptive name
for the flag.

Rename cmdmode to transform_mode in cat-file.c

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/cat-file.c