]> git.ipfire.org Git - thirdparty/git.git/commit
tests: fix and add lint for non-portable grep --file
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 24 Aug 2018 15:20:16 +0000 (15:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Aug 2018 21:07:32 +0000 (14:07 -0700)
commit4a3ed638027343cbfc47821973c2c3784a5c53ed
treed4bb506bba995afb006307344284a8d81bbaa2c3
parent8c97e3873156415015ab41523675416c91914eae
tests: fix and add lint for non-portable grep --file

The --file option to grep isn't in POSIX[1], but -f is[1]. Let's check
for that in the future, and fix the portability regression in
f237c8b6fe ("commit-graph: implement git-commit-graph write",
2018-04-02) that broke e.g. AIX.

1. http://pubs.opengroup.org/onlinepubs/009695399/utilities/grep.html

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/check-non-portable-shell.pl
t/t5318-commit-graph.sh