Merge branch 'jc/cat-file-batch-commands'
commitd169d51504cd527edac82a57c6624c5d16ecb7b5
authorJunio C Hamano <gitster@pobox.com>
Wed, 9 Mar 2022 21:38:24 +0000 (9 13:38 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Mar 2022 21:38:24 +0000 (9 13:38 -0800)
tree7c08ba74d6b04fc4477fb5c3ab11054899637cf2
parent47be28e51e6a3b390e694d868b7da04181e99e96
parent440c705ea63253642c8f4761f80eb7a97a62b614
Merge branch 'jc/cat-file-batch-commands'

"git cat-file" learns "--batch-command" mode, which is a more
flexible interface than the existing "--batch" or "--batch-check"
modes, to allow different kinds of inquiries made.

* jc/cat-file-batch-commands:
  cat-file: add --batch-command mode
  cat-file: add remove_timestamp helper
  cat-file: introduce batch_mode enum to replace print_contents
  cat-file: rename cmdmode to transform_mode