git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-rebase -i prunes commits with empty commit-message
@ 2010-03-08 20:07 Erik Faye-Lund
  2010-03-10 13:13 ` Michael Haggerty
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Faye-Lund @ 2010-03-08 20:07 UTC (permalink / raw)
  To: Git Mailing List

I'm in the process of converting an SVN repo to Git, and in the
process I found one quite disturbing feature of
git-rebase--interactive.sh: It discards commits with empty commit
messages!

Here's a recepie for reproducing the issue:
--->8---
git init
git commit -m "dummy" --allow-empty
git commit -m "dummy" --allow-empty
git commit -m "dummy" --allow-empty
git filter-branch -f --msg-filter 'sed -e "s/dummy//"'
git rebase -i HEAD~2
--->8---

The editor window will show "noop", and exiting the editor goes ahead
and deletes all but the initial commit.

This gets even weirder if it's a mixture of empty and non-empty
commits; the commit-identifiers gets appended, together with an
angle-bracket ('>'), to the previous line.

I'm guessing that this is unintended behavior. This was observed on git 1.7.0.1.

-- 
Erik "kusma" Faye-Lund

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-03-11 13:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-08 20:07 git-rebase -i prunes commits with empty commit-message Erik Faye-Lund
2010-03-10 13:13 ` Michael Haggerty
2010-03-10 13:34   ` Erik Faye-Lund
2010-03-11 13:14     ` Erik Faye-Lund
2010-03-11 13:46       ` Erik Faye-Lund
2010-03-10 19:53   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).