mirror of
https://github.com/git/git.git
synced 2026-03-19 13:10:05 +01:00
Merge branch 'master' into next
* master: config.txt: fix placement of diff.noprefix t/t4018: avoid two unnecessary sub-shell invocations
This commit is contained in:
@@ -37,13 +37,13 @@ for p in $builtin_patterns
|
||||
do
|
||||
test_expect_success "builtin $p pattern compiles" '
|
||||
echo "*.java diff=$p" > .gitattributes &&
|
||||
! ( git diff --no-index Beer.java Beer-correct.java 2>&1 |
|
||||
grep "fatal" > /dev/null )
|
||||
! { git diff --no-index Beer.java Beer-correct.java 2>&1 |
|
||||
grep "fatal" > /dev/null; }
|
||||
'
|
||||
test_expect_success "builtin $p wordRegex pattern compiles" '
|
||||
! ( git diff --no-index --word-diff \
|
||||
! { git diff --no-index --word-diff \
|
||||
Beer.java Beer-correct.java 2>&1 |
|
||||
grep "fatal" > /dev/null )
|
||||
grep "fatal" > /dev/null; }
|
||||
'
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user