On Mon, Aug 16, 2010 at 01:49, Junio C Hamano [off-list ref] wrote:
Ævar Arnfjörð Bjarmason [off-list ref] writes:
quoted
quoted
quoted
+ # Needs an unrelated root commit
+ test_commit README &&
This is not a "root" commit, is it?
s/root/first/
It is not even the first commit, is it? It comes on top of whatever
commits that earlier tests left.
quoted
quoted
quoted
+ >Foo.bar &&
+ git add Foo.bar &&
+ git commit --allow-empty-message </dev/null &&
Does emptiness of the message matter?
No, I was just going for a minimal test case, no commit message is
more minimal than having one.
I do not think having to write "--allow-empty-message </dev/null" is
aiming for being minimal; it is doing something unusual after all.
If you do not remember why you added this test 6 months down the road,
wouldn't you be confused to think maybe the commit has to be unusual in
that it has to lack the message to trigger the bug?
My v2 patch should address both of these issues.