Merge branch 'ot/cat-batch-format' into pu
authorJunio C Hamano <gitster@pobox.com>
Fri, 23 Feb 2018 22:47:51 +0000 (14:47 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Feb 2018 22:47:51 +0000 (14:47 -0800)
commitac4df25d7d0698dc1e9a8de1e4fdf30ba73c6479
tree24b6e5669c8aac26d2bbb8b6aa7bad5c452b0c3b
parent087b3c5dcc373e746a5bdc9726bd1beccf184a1e
parent25b40a581a6880891cd8750968c8b0e84884e9c6
Merge branch 'ot/cat-batch-format' into pu

Teach "cat-file --batch" to reuse the formatting machinery shared
by for-each-ref, branch --list, and tag --list.

Allocates flex-array on stack, etc.
cf. <58b2bdcd-d621-fd21-ab4d-6a9478319b19@ramsayjones.plus.com>

* ot/cat-batch-format: (23 commits)
  cat-file: update of docs
  cat-file: tests for new atoms added
  for-each-ref: tests for new atoms added
  ref-filter: unifying formatting of cat-file opts
  ref-filter: make populate_value() internal again
  cat-file: reuse printing logic from ref-filter
  ref-filter: make valid_atom general again
  ref-filter: make cat_file_info independent
  cat-file: move skip_object_info into ref-filter
  ref_filter: add is_atom_used function
  ref-filter: get rid of mark_atom_in_object_info()
  cat-file: start reusing populate_value()
  ref-filter: rename field in ref_array_item stuct
  ref-filter: make populate_value() global
  cat-file: start use ref_array_item struct
  ref-filter: reuse parse_ref_filter_atom()
  cat-file: start migrating formatting to ref-filter
  cat-file: split expand_atom() into 2 functions
  cat-file: move struct expand_data into ref-filter
  ref-filter: make valid_atom as function parameter
  ...
Documentation/git-cat-file.txt
builtin/cat-file.c
ref-filter.c
ref-filter.h
t/t6300-for-each-ref.sh