/
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 --cached: do not borrow from a work tree when a path is marked as assume-unchanged
[git/git.git]
/
t
/
t4020-diff-external.sh
diff --git
a/t/t4020-diff-external.sh
b/t/t4020-diff-external.sh
index
637b4e1
..
f853b8a
100755
(executable)
--- a/
t/t4020-diff-external.sh
+++ b/
t/t4020-diff-external.sh
@@
-107,4
+107,12
@@
test_expect_success 'force diff with "diff"' '
test_cmp ../t4020/diff.NUL actual
'
+test_expect_success 'diff --cached' '
+ git add file &&
+ git update-index --assume-unchanged file &&
+ echo second >file &&
+ git diff --cached >actual &&
+ test_cmp ../t4020/diff.NUL actual
+'
+
test_done