t: restrict `is_hidden` to be called only on Windows
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 11 Apr 2020 13:40:22 +0000 (13:40 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 11 Apr 2020 21:24:40 +0000 (14:24 -0700)
commit176a66a748c18132ebb747553896b810993179a6
treee79804507efbc57568864269635c968a8a8b4d31
parent9814d0a4ad0f9670b5959939f38dd42f9a7d83b6
t: restrict `is_hidden` to be called only on Windows

The function won't work anywhere else, so let's mark it as an explicit
bug if it is called on a non-Windows platform.

Let's also rename the function to avoid cluttering the global namespace
with an overly-generic function name.

While at it, we also fix the code comment above that function: the
lower-case `windows` refers to something different than `Windows`.

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