Merge branch 'maint'
* maint: gitweb/README: fix AliasMatch in example Test grep --and/--or/--not Test git archive --remote fread does not return negative on error
This commit is contained in:
@ -94,6 +94,10 @@ test_expect_success 'git archive with --output' \
|
||||
'git archive --output=b4.tar HEAD &&
|
||||
test_cmp b.tar b4.tar'
|
||||
|
||||
test_expect_success 'git archive --remote' \
|
||||
'git archive --remote=. HEAD >b5.tar &&
|
||||
test_cmp b.tar b5.tar'
|
||||
|
||||
test_expect_success \
|
||||
'validate file modification time' \
|
||||
'mkdir extract &&
|
||||
|
@ -125,6 +125,36 @@ do
|
||||
|
||||
done
|
||||
|
||||
cat >expected <<EOF
|
||||
file:foo mmap bar_mmap
|
||||
EOF
|
||||
|
||||
test_expect_success 'grep -e A --and -e B' '
|
||||
git grep -e "foo mmap" --and -e bar_mmap >actual &&
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
cat >expected <<EOF
|
||||
file:foo_mmap bar mmap
|
||||
file:foo_mmap bar mmap baz
|
||||
EOF
|
||||
|
||||
|
||||
test_expect_success 'grep ( -e A --or -e B ) --and -e B' '
|
||||
git grep \( -e foo_ --or -e baz \) \
|
||||
--and -e " mmap" >actual &&
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
cat >expected <<EOF
|
||||
file:foo mmap bar
|
||||
EOF
|
||||
|
||||
test_expect_success 'grep -e A --and --not -e B' '
|
||||
git grep -e "foo mmap" --and --not -e bar_mmap >actual &&
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
test_expect_success 'log grep setup' '
|
||||
echo a >>file &&
|
||||
test_tick &&
|
||||
|
Reference in New Issue
Block a user