Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH 3/4 v2] Allow detached form (e.g. "git log --grep foo") in log options.

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:49:12

Ævar Arnfjörð Bjarmason [off-list ref] writes:
On Wed, Jul 28, 2010 at 09:41, Matthieu Moy [off-list ref] wrote:

Here's a better commit message, the subject was >50 chars> (see
Documentation/SubmittingPatches):
I don't see a mention of 50 chars there. Conventions usually limit
lines to <80 chars (sometimes 72), and my subject line is 64
chars-wide if you don't count [PATCH], which won't end up in git.git.
quoted
+test_expect_success 'log --grep option parsing' '
+       echo second >expect &&
+       git log -1 --pretty="tformat:%s" --grep sec >actual &&
+       test_cmp expect actual &&
+       test_must_fail git log -1 --pretty="tformat:%s" --grep
+'
There's a lot of behavior change in this series, but only two small
tests that I can see.
4, not 2.
It would be easy to change the parsing code back without triggering
a regression test.
I've introduced a test for each pattern, but deliberately did not do
exhaustive testing: I'm testing the patterns, not the way they are
applied. In the same way, I don't think there's a testcase for each
use of parse-option in the testsuite.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help