Re: [PATCH v5] Add log.abbrevCommit config variable

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH v5] Add log.abbrevCommit config variable

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:15

Jay Soffian [off-list ref] writes:
+test_expect_success 'log.abbrev-commit configuration' '
+	test_when_finished "git config --unset log.abbrevCommit" &&
+
+	git log >expect.full &&
+	git log --abbrev-commit >expect.abbrev &&
+	git log --pretty=raw >expect.raw &&
+	git log -g --abbrev-commit --pretty=oneline >expect.reflog &&
+	git whatchanged --abbrev-commit >expect.whatchanged &&
+
+	git config log.abbrevCommit true &&
+
+	git log --no-abbrev-commit >actual.full &&
+	test_cmp expect.full actual.full &&
+
+	git log >actual.abbrev &&
+	test_cmp expect.abbrev actual.abbrev &&
+
+	git log --pretty=raw >actual.raw &&
+	test_cmp expect.raw actual.raw &&
+
+	git reflog >actual.reflog &&
+	test_cmp expect.reflog actual.reflog
+
+	git whatchanged >actual.whatchanged &&
+	test_cmp expect.whatchanged actual.whatchanged
+'
I can see you are testing all the commands in the "log" family for cases
where the new configuration _should_ take effect, but I cannot see the
same throughness for the negative case where the configuration should not
kick in. Is "log" the only one that you make sure --no-abbrev-commit
defeats the configuration? Please always test both sides of the coin.

Other than that, the patch looked fine from my cursory look.

Thanks.

Re: [PATCH v5] Add log.abbrevCommit config variable

From: Jay Soffian <hidden>
Date: 2016-06-15 22:51:16

On Wed, May 18, 2011 at 12:22 AM, Junio C Hamano [off-list ref] wrote:
Other than that, the patch looked fine from my cursory look.
Thanks, I hope v7 addresses all concerns.

j.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help