X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft0030-stripspace.sh;h=cad95f35adad5864e99ef5cd1633c820ff25b6c0;hb=dcb83ec18d5a79c438289eb55d9c01c61490d2e4;hp=b1c900379b22076ad69fa5d585fc9cbc0dc27c21;hpb=4b7f59af2a5b072a0a3950c956842e4d6223a167;p=git.git diff --git a/t/t0030-stripspace.sh b/t/t0030-stripspace.sh index b1c900379..cad95f35a 100755 --- a/t/t0030-stripspace.sh +++ b/t/t0030-stripspace.sh @@ -392,4 +392,9 @@ test_expect_success \ git diff expect actual ' +test_expect_success 'strip comments, too' ' + test ! -z "$(echo "# comment" | git stripspace)" && + test -z "$(echo "# comment" | git stripspace -s)" +' + test_done