]> Kevux Git Server - rit/commit
t3310: replace test -f/-d with test_path_is_file/test_path_is_dir
authorFrancesco Paparatto <francescopaparatto@gmail.com>
Sat, 28 Feb 2026 00:59:39 +0000 (01:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Mar 2026 21:13:56 +0000 (13:13 -0800)
commitf31b322008c526693660770e66c12f4bcfd29558
treebc839f8671f24693f9303208cda4bee6b3fcc6bc
parent67ad42147a7acc2af6074753ebd03d904476118f
t3310: replace test -f/-d with test_path_is_file/test_path_is_dir

Replace old-style path assertions with modern helpers that
provide clearer diagnostic messages on failure. When test -f
fails, the output gives no indication of what went wrong.

These instances were found using:

  git grep "test -[efd]" t/

as suggested in the microproject ideas.

Signed-off-by: Francesco Paparatto <francescopaparatto@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3310-notes-merge-manual-resolve.sh