diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-08-27 04:05:10 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-09-05 19:58:52 (GMT) |
commit | 6bd26f58ea27914547ff65f367a3b60f77a4d183 (patch) | |
tree | 10235c91f43b579f883b0713dd0af97715eb779b /wt-status.h | |
parent | c6ec6dadba52a5186739fea4cf8fa2e26feb9e70 (diff) | |
download | git-6bd26f58ea27914547ff65f367a3b60f77a4d183.zip git-6bd26f58ea27914547ff65f367a3b60f77a4d183.tar.gz git-6bd26f58ea27914547ff65f367a3b60f77a4d183.tar.bz2 |
t4014: use test_line_count() where possible
Convert all instances of `cnt=$(... | wc -l) && test $cnt = N` into uses
of `test_line_count()`.
While we're at it, convert one instance of a Git command upstream of a
pipe into two commands. This prevents a failure of a Git command from
being masked since only the return code of the last member of the pipe
is shown.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.h')
0 files changed, 0 insertions, 0 deletions