Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t/t4018: avoid two unnecessary sub-shell invocations
author
Brandon Casey
<drafnel@gmail.com>
Fri, 10 Sep 2010 16:13:38 +0000
(11:13 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 10 Sep 2010 16:30:14 +0000
(09:30 -0700)
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4018-diff-funcname.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8ac8cf5
)
diff --git
a/t/t4018-diff-funcname.sh
b/t/t4018-diff-funcname.sh
index 620cd027982959971d7c32dc94286550d945e3df..c8e19372b00f128646b809e1f5723d88b58a3f30 100755
(executable)
--- a/
t/t4018-diff-funcname.sh
+++ b/
t/t4018-diff-funcname.sh
@@
-37,13
+37,13
@@
for p in $builtin_patterns
do
test_expect_success "builtin $p pattern compiles" '
echo "*.java diff=$p" > .gitattributes &&
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" '
'
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 |
Beer.java Beer-correct.java 2>&1 |
- grep "fatal" > /dev/null
)
+ grep "fatal" > /dev/null
; }
'
done
'
done