merge(third_party/git): Merge squashed git subtree at v2.23.0
Merge commit '1b593e1ea4' as 'third_party/git'
This commit is contained in:
commit
7ef0d62730
3629 changed files with 1139935 additions and 0 deletions
26
third_party/git/t/t4106-apply-stdin.sh
vendored
Executable file
26
third_party/git/t/t4106-apply-stdin.sh
vendored
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
|
||||
test_description='git apply --numstat - <patch'
|
||||
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
echo hello >text &&
|
||||
git add text &&
|
||||
echo goodbye >text &&
|
||||
git diff >patch
|
||||
'
|
||||
|
||||
test_expect_success 'git apply --numstat - < patch' '
|
||||
echo "1 1 text" >expect &&
|
||||
git apply --numstat - <patch >actual &&
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_expect_success 'git apply --numstat - < patch patch' '
|
||||
for i in 1 2; do echo "1 1 text"; done >expect &&
|
||||
git apply --numstat - < patch patch >actual &&
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_done
|
||||
Loading…
Add table
Add a link
Reference in a new issue