]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t4018,7810,7811: remove test_config() redefinition
authorRamkumar Ramachandra <artagnon@gmail.com>
Tue, 19 Mar 2013 10:43:14 +0000 (16:13 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Mar 2013 16:10:15 +0000 (09:10 -0700)
test_config() is already a well-defined function in
test-lib-functions.sh.  Don't duplicate it unnecessarily.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4018-diff-funcname.sh
t/t7810-grep.sh
t/t7811-grep-open.sh

index 4bd2a1c838e9a522c4376860e726455d3cdb92b0..9b5db6c77b2299a0b8efa9d462bed7bfffed8e47 100755 (executable)
@@ -93,11 +93,6 @@ sed -e '
        s/song;/song();/
 ' <Beer.perl >Beer-correct.perl
 
-test_config () {
-       git config "$1" "$2" &&
-       test_when_finished "git config --unset $1"
-}
-
 test_expect_funcname () {
        lang=${2-java}
        test_expect_code 1 git diff --no-index -U1 \
index 3021cf251c96833a815c5de707d794ba2e07774b..b33b7ba6d0c29160abe132ebe4acfdee17c8bce8 100755 (executable)
@@ -861,11 +861,6 @@ test_expect_success LIBPCRE 'grep -G -F -E -P pattern' '
        test_cmp expected actual
 '
 
-test_config() {
-       git config "$1" "$2" &&
-       test_when_finished "git config --unset $1"
-}
-
 cat >expected <<EOF
 hello.c<RED>:<RESET>int main(int argc, const char **argv)
 hello.c<RED>-<RESET>{
index a8957782cfb8fae4b7c171d4c9db24ce6cd5505e..e1951a5cbb759a0f233b624a1a1a7e9c55ff9640 100755 (executable)
@@ -125,11 +125,6 @@ test_expect_success 'modified file' '
        test_cmp empty out
 '
 
-test_config() {
-       git config "$1" "$2" &&
-       test_when_finished "git config --unset $1"
-}
-
 test_expect_success 'copes with color settings' '
        rm -f actual &&
        echo grep.h >expect &&