aboutsummaryrefslogtreecommitdiffstats
path: root/git-gui/lib/win32.tcl
diff options
context:
space:
mode:
authorTorsten Bögershausen <tboegi@web.de>2017-12-21 22:26:46 +0100
committerJunio C Hamano <gitster@pobox.com>2017-12-22 13:00:51 -0800
commit7dbe8c8003f3bec04f9dbbfff2b4bff172e52d9c (patch)
treeb80e0cd9c536982229c0535d8e6e9dc97042f63d /git-gui/lib/win32.tcl
parentRelNotes: the tenth batch (diff)
downloadgit-7dbe8c8003f3bec04f9dbbfff2b4bff172e52d9c.tar.gz
git-7dbe8c8003f3bec04f9dbbfff2b4bff172e52d9c.zip
check-non-portable-shell.pl: `wc -l` may have leading WS
Test scripts count number of lines in an output and check it againt its expectation. fb3340a6 ("test-lib: introduce test_line_count to measure files", 2010-10-31) introduced a helper to show a failure in such a test in a more readable way than comparing `wc -l` output with a number. Besides, on some platforms, "$(wc -l <file)" is padded with leading whitespace on the left, so test "$(wc -l <file)" = 4 would not work (most notably on macosX); the users of test_line_count helper would not suffer from such a portability glitch. Add a check in check-non-portable-shell.pl to find '"' between `wc -l` and '=' and hint the user about test_line_count(). Signed-off-by: Torsten Bögershausen <tboegi@web.de> Reviewed-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/win32.tcl')
0 files changed, 0 insertions, 0 deletions
/span>Git 2.33.7v2.33.7Johannes Schindelin3-2/+9 2023-02-06Git 2.32.6v2.32.6Johannes Schindelin3-2/+8 2023-02-06Git 2.31.7v2.31.7Johannes Schindelin3-2/+8 2023-02-06Git 2.30.8v2.30.8Junio C Hamano3-2/+54 2023-02-03apply: fix writing behind newly created symbolic linksPatrick Steinhardt2-0/+108 2023-01-24dir-iterator: prevent top-level symlinks without FOLLOW_SYMLINKSTaylor Blau4-5/+56 2023-01-24clone: delay picking a transport until after get_repo_path()Taylor Blau2-8/+15