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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jay Soffian <jaysoffian@xxxxxxxxx> 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.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]