aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorBrian Gernhardt <brian@silverinsanity.com>2010-06-25 13:20:48 -0400
committerJunio C Hamano <gitster@pobox.com>2010-06-25 10:54:04 -0700
commit6ed7ddaadba9217b794aecf6d74a2e455daf7a96 (patch)
treea737d30a55681c332073eaef856c8c34949c3566 /diff.c
parentdd44d419d30afa52b863efa07aeec738c4531ea9 (diff)
downloadgit-6ed7ddaadba9217b794aecf6d74a2e455daf7a96.tar.gz
git-6ed7ddaadba9217b794aecf6d74a2e455daf7a96.tar.xz
t4027,4041: Use test -s to test for an empty file
The tests used a mixture of 'echo -n' (which is non-portable) and either test_cmp or diff to check if a file is empty. The much easier and portable method to check for an empty file is '! test -s' While we're in t4027, there was an excess test_done. Remove it. Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions