Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'cc/merge-base-many'
[gitweb.git]
/
t
/
t4015-diff-whitespace.sh
diff --git
a/t/t4015-diff-whitespace.sh
b/t/t4015-diff-whitespace.sh
index 6110566aaa5e0974c1f034ea7c8601ae43daa0db..f9eb67d8351e608ec213a330f63a94ac0d3b81be 100755
(executable)
--- a/
t/t4015-diff-whitespace.sh
+++ b/
t/t4015-diff-whitespace.sh
@@
-341,4
+341,15
@@
test_expect_success 'checkdiff detects trailing blank lines' '
git diff --check | grep "ends with blank"
'
+test_expect_success 'checkdiff allows new blank lines' '
+ git checkout x &&
+ mv x y &&
+ (
+ echo "/* This is new */" &&
+ echo "" &&
+ cat y
+ ) >x &&
+ git diff --check
+'
+
test_done