/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
diff: Fix miscounting of --check output
[git/git.git]
/
t
/
t4015-diff-whitespace.sh
diff --git
a/t/t4015-diff-whitespace.sh
b/t/t4015-diff-whitespace.sh
index
d30169f
..
83c54b7
100755
(executable)
--- a/
t/t4015-diff-whitespace.sh
+++ b/
t/t4015-diff-whitespace.sh
@@
-326,4
+326,13
@@
test_expect_success 'check tabs and spaces as indentation (indent-with-non-tab:
! git diff --check
'
+
+test_expect_success 'line numbers in --check output are correct' '
+
+ echo "" > x &&
+ echo "foo(); " >> x &&
+ git diff --check | grep "x:2:"
+
+'
+
test_done