Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t8005: use egrep when extended regular expressions are required
author
Brandon Casey
<casey@nrlssc.navy.mil>
Wed, 6 May 2009 18:31:42 +0000
(13:31 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 May 2009 18:48:58 +0000
(11:48 -0700)
Not all versions of grep understand backslashed extended regular
expressions. Possibly only gnu grep does.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t8005-blame-i18n.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
6a260f5
)
diff --git
a/t/t8005-blame-i18n.sh
b/t/t8005-blame-i18n.sh
index 4470a92bb235420a2a0123eca5b57e06039ff011..fcd5c266754a2b5de3dbbf94c8ef25aebff061f2 100755
(executable)
--- a/
t/t8005-blame-i18n.sh
+++ b/
t/t8005-blame-i18n.sh
@@
-36,7
+36,7
@@
EOF
test_expect_success \
'blame respects i18n.commitencoding' '
git blame --incremental file | \
test_expect_success \
'blame respects i18n.commitencoding' '
git blame --incremental file | \
-
grep "^\(author\|summary\
) " > actual &&
+
egrep "^(author|summary
) " > actual &&
test_cmp actual expected
'
test_cmp actual expected
'
@@
-53,7
+53,7
@@
test_expect_success \
'blame respects i18n.logoutputencoding' '
git config i18n.logoutputencoding cp1251 &&
git blame --incremental file | \
'blame respects i18n.logoutputencoding' '
git config i18n.logoutputencoding cp1251 &&
git blame --incremental file | \
-
grep "^\(author\|summary\
) " > actual &&
+
egrep "^(author|summary
) " > actual &&
test_cmp actual expected
'
test_cmp actual expected
'
@@
-69,7
+69,7
@@
EOF
test_expect_success \
'blame respects --encoding=utf-8' '
git blame --incremental --encoding=utf-8 file | \
test_expect_success \
'blame respects --encoding=utf-8' '
git blame --incremental --encoding=utf-8 file | \
-
grep "^\(author\|summary\
) " > actual &&
+
egrep "^(author|summary
) " > actual &&
test_cmp actual expected
'
test_cmp actual expected
'
@@
-85,7
+85,7
@@
EOF
test_expect_success \
'blame respects --encoding=none' '
git blame --incremental --encoding=none file | \
test_expect_success \
'blame respects --encoding=none' '
git blame --incremental --encoding=none file | \
-
grep "^\(author\|summary\
) " > actual &&
+
egrep "^(author|summary
) " > actual &&
test_cmp actual expected
'
test_cmp actual expected
'