Merge branch 'ps/cat-file-null-output'
commita9ea4c23dc34bd0c27166f3445aba5a8696700c7
authorJunio C Hamano <gitster@pobox.com>
Thu, 22 Jun 2023 23:29:06 +0000 (22 16:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Jun 2023 23:29:06 +0000 (22 16:29 -0700)
treecd78fe32e6595abcb83a8a184c9226a9cde23f14
parentd9f9f6b358c4d8aad492bc4995be0926048a6248
parentf79e18849b5dd8ad83f38744a2e08370f919491a
Merge branch 'ps/cat-file-null-output'

"git cat-file --batch" and friends learned "-Z" that uses NUL
delimiter for both input and output.

* ps/cat-file-null-output:
  cat-file: add option '-Z' that delimits input and output with NUL
  cat-file: simplify reading from standard input
  strbuf: provide CRLF-aware helper to read until a specified delimiter
  t1006: modernize test style to use `test_cmp`
  t1006: don't strip timestamps from expected results
builtin/cat-file.c