85c1a35ca7f8deebf7e6a93c1112cefe771c80f1 blob 698 bytes (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| | #!/bin/sh
test_description='behavior of diff with intent-to-add entries'
. ./test-lib.sh
test_expect_success setup '
test_write_lines 1 2 3 4 5 >blueprint
'
test_expect_success 'diff between i-t-a and file should be new file' '
cat blueprint >test-file &&
git add -N test-file &&
git diff >output &&
grep "new file mode 100644" output
'
test_expect_success 'diff between i-t-a and no file should be deletion' '
rm -f test-file &&
git diff >output &&
grep "deleted file mode 100644" output
'
test_expect_success '--ita-visible-in-index diff should be from empty blob' '
cat blueprint >test-file &&
git diff --ita-visible-in-index >output &&
grep "index e69de29" output
'
test_done
|
debug log:
solving 85c1a35ca7 ...
found 85c1a35ca7 in https://public-inbox.org/git/20200810085343.43717-1-ray@ameretat.dev/
applying [1/1] https://public-inbox.org/git/20200810085343.43717-1-ray@ameretat.dev/
diff --git a/t/t4069-diff-intent-to-add.sh b/t/t4069-diff-intent-to-add.sh
new file mode 100644
index 0000000000..85c1a35ca7
Checking patch t/t4069-diff-intent-to-add.sh...
Applied patch t/t4069-diff-intent-to-add.sh cleanly.
index at:
100644 85c1a35ca7f8deebf7e6a93c1112cefe771c80f1 t/t4069-diff-intent-to-add.sh
Code repositories for project(s) associated with this inbox:
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).