summaryrefslogtreecommitdiff
path: root/t/t3301-notes.sh
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-11-27 19:53:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-11-29 21:20:14 (GMT)
commit77a946be98f4cf2947f9aefac924c0ee78a042c7 (patch)
tree9ef27ae1523410408bbeb841dfee13c4c84e2aa9 /t/t3301-notes.sh
parentdf6d3d6802abcb89a30f4808fcca3bfe1485ce34 (diff)
downloadgit-77a946be98f4cf2947f9aefac924c0ee78a042c7.zip
git-77a946be98f4cf2947f9aefac924c0ee78a042c7.tar.gz
git-77a946be98f4cf2947f9aefac924c0ee78a042c7.tar.bz2
apply-one-time-sed.sh: modernize style
Convert `[ ... ]` to use `test` and test for the existence of a regular file (`-f`) instead of any file (`-e`). Move the `then`s onto their own lines so that it conforms with the general test style. Instead of redirecting input into sed, allow it to open its own input. Use `cmp -s` instead of `diff` since we only care about whether the two files are equal and `diff` is overkill for this. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3301-notes.sh')
0 files changed, 0 insertions, 0 deletions