{"thread":{"id":"19950","subject":"[PATCH 1/2] Test git archive --remote","startedAt":"2009-06-27T18:47:43Z","lastAt":"2009-06-27T18:47:44Z","messageCount":2,"participants":["Thomas Rast"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"117102","messageId":"dac606a8ee9b87339d1cf4b1bff23cea3c1b1c23.1246128025.git.trast@student.ethz.ch","threadId":"19950","inReplyTo":null,"subject":"[PATCH 1/2] Test git archive --remote","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2009-06-27T18:47:43Z","receivedAt":"2009-06-27T18:47:43Z","isPatch":true,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Add a small test case for git archive --remote (and thus\ngit-upload-archive), which so far went untested.\n\nSigned-off-by: Thomas Rast <trast@student.ethz.ch>\n---\n\nThis and the next patch are some fairly low-hanging fruit picked from\nlooking at 'make coverage'.\n\n\n t/t5000-tar-tree.sh |    4 ++++\n 1 files changed, 4 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh\nindex abb41b0..5f84b18 100755\n--- a/t/t5000-tar-tree.sh\n+++ b/t/t5000-tar-tree.sh\n@@ -94,6 +94,10 @@ test_expect_success 'git archive with --output' \\\n     'git archive --output=b4.tar HEAD &&\n     test_cmp b.tar b4.tar'\n \n+test_expect_success 'git archive --remote' \\\n+    'git archive --remote=. HEAD >b5.tar &&\n+    test_cmp b.tar b5.tar'\n+\n test_expect_success \\\n     'validate file modification time' \\\n     'mkdir extract &&\n-- \n1.6.3.3.423.ga0175\n"},{"id":"117103","messageId":"00cb3d5121573fd1208bd297ab13ee4be966e915.1246128025.git.trast@student.ethz.ch","threadId":"19950","inReplyTo":"dac606a8ee9b87339d1cf4b1bff23cea3c1b1c23.1246128025.git.trast@student.ethz.ch","subject":"[PATCH 2/2] Test grep --and/--or/--not","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2009-06-27T18:47:44Z","receivedAt":"2009-06-27T18:47:44Z","isPatch":true,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Signed-off-by: Thomas Rast <trast@student.ethz.ch>\n---\n t/t7002-grep.sh |   30 ++++++++++++++++++++++++++++++\n 1 files changed, 30 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t7002-grep.sh b/t/t7002-grep.sh\nindex f275af8..7868af8 100755\n--- a/t/t7002-grep.sh\n+++ b/t/t7002-grep.sh\n@@ -125,6 +125,36 @@ do\n \n done\n \n+cat >expected <<EOF\n+file:foo mmap bar_mmap\n+EOF\n+\n+test_expect_success 'grep -e A --and -e B' '\n+\tgit grep -e \"foo mmap\" --and -e bar_mmap >actual &&\n+\ttest_cmp expected actual\n+'\n+\n+cat >expected <<EOF\n+file:foo_mmap bar mmap\n+file:foo_mmap bar mmap baz\n+EOF\n+\n+\n+test_expect_success 'grep ( -e A --or -e B ) --and -e B' '\n+\tgit grep \\( -e foo_ --or -e baz \\) \\\n+\t\t--and -e \" mmap\" >actual &&\n+\ttest_cmp expected actual\n+'\n+\n+cat >expected <<EOF\n+file:foo mmap bar\n+EOF\n+\n+test_expect_success 'grep -e A --and --not -e B' '\n+\tgit grep -e \"foo mmap\" --and --not -e bar_mmap >actual &&\n+\ttest_cmp expected actual\n+'\n+\n test_expect_success 'log grep setup' '\n \techo a >>file &&\n \ttest_tick &&\n-- \n1.6.3.3.423.ga0175\n"}]}