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

Re: FYI: git-am allows creation of empty commits.

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

Possibly related (same subject, not in this thread)

Eric Wong [off-list ref] writes:
quoted
I think 99.9% of the time it is a mistake if a single-parented
commit has the same tree as its parent commit has, so having a
check in commit-tree may not be a bad idea.
This would break importers, more than 0.1% I think...  Arch
definitely allows empty commits for getting log messages in.
SVN forbids them from their POV, but they also have things
that we can't see when we import (properties like: mime,
externals, eol-style) causing us to write the same tree twice.
Not sure about CVS...

Maybe a flag such as --force could be added.
Good point perhaps.  Maybe an explicit --no-empty should ask for
it, and git-am should use it.  As to git-commit I am unsure.

In the meantime I'd drop the patch.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help