From: Junio C Hamano Date: Wed, 10 Mar 2010 19:53:22 GMT Subject: Re: git-rebase -i prunes commits with empty commit-message Message-ID: <7veijsrm19.fsf@alter.siamese.dyndns.org> In-Reply-To: <4B979AEF.5010201@alum.mit.edu> Michael Haggerty writes: > Does git really claim to handle commits with empty commit messages? Yes, I would say it is a bug in rebase-i if it refuses to deal with histories with such commits. Warning and giving the user a chance to add message _might_ be good, but allowing no way out would be inexcusable. Even adding a fake "(original commit had no message)" as the message and continuing would be better than stopping or dropping commits. The Porcelain "git commit" by default complains if you do not give any message, because it usually is an end-user mistake to directly use "git commit" and not writing anything about the resulting commit. However, (1) The plumbing allows it because such a policy to forbid commits without comments does not belong there, e.g. this would succeed: $ git commit-tree HEAD^{tree}