]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib-functions.sh
t: consolidate the `is_hidden` functions
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 11 Apr 2020 13:40:20 +0000 (13:40 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 11 Apr 2020 21:23:23 +0000 (14:23 -0700)
commit7c2dfca7e81538b3d979b85b5bd023358d4d79eb
tree703826db47c1ac9b73d1802a4ccc0df8f12f8f04
parent9fadedd637b312089337d73c3ed8447e9f0aa775
t: consolidate the `is_hidden` functions

The `is_hidden` function can be used (only on Windows) to determine
whether a directory or file have their `hidden` flag set.

This function is duplicated between two test scripts. It is better to
move it into `test-lib-functions.sh` so that it is reused.

This patch is best viewed with `--color-moved`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0001-init.sh
t/t5611-clone-config.sh
t/test-lib-functions.sh