]> Kevux Git Server - rit/commit
t: use test_seq -f and pipes in a few more places
authorAaron Plattner <aplattner@nvidia.com>
Wed, 18 Feb 2026 18:10:19 +0000 (10:10 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Feb 2026 17:02:08 +0000 (09:02 -0800)
commit0678e01f0211f4e3310f3c01b3425da53aa63677
tree75bc311b6fb4e200ee5be4758f18f5574af2c161
parent67ad42147a7acc2af6074753ebd03d904476118f
t: use test_seq -f and pipes in a few more places

Several tests use a pattern that writes to a temporary file like this:

  printf "do something with %d\n" $(test_seq <count>) >tmpfile &&
  git do-something --stdin <tmpfile

Other tests use test_seq's -f parameter, but still write to a temporary file:

  test_seq -f "do something with %d" <count> >input &&
  git do-something --stdin <input

Simplify both of these patterns to

  test_seq -f "do something with %d" <count> |
  git do-something --stdin

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/pack-refs-tests.sh
t/t0613-reftable-write-options.sh
t/t1400-update-ref.sh
t/t1460-refs-migrate.sh
t/t5004-archive-corner-cases.sh
t/t5401-update-hooks.sh