mirror of
https://github.com/git/git.git
synced 2026-03-18 20:50:07 +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:
@@ -813,8 +813,6 @@ diff.mnemonicprefix::
|
||||
standard "a/" and "b/" depending on what is being compared. When
|
||||
this configuration is in effect, reverse diff output also swaps
|
||||
the order of the prefixes:
|
||||
diff.noprefix::
|
||||
If set, 'git diff' does not show any source or destination prefix.
|
||||
`git diff`;;
|
||||
compares the (i)ndex and the (w)ork tree;
|
||||
`git diff HEAD`;;
|
||||
@@ -826,6 +824,9 @@ diff.noprefix::
|
||||
`git diff --no-index a b`;;
|
||||
compares two non-git things (1) and (2).
|
||||
|
||||
diff.noprefix::
|
||||
If set, 'git diff' does not show any source or destination prefix.
|
||||
|
||||
diff.renameLimit::
|
||||
The number of files to consider when performing the copy/rename
|
||||
detection; equivalent to the 'git diff' option '-l'.
|
||||
|
||||
@@ -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