From: Erik Faye-Lund <kusmabite@googlemail.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: git-rebase -i prunes commits with empty commit-message
Date: Mon, 8 Mar 2010 21:07:41 +0100 [thread overview]
Message-ID: <40aa078e1003081207u20046916yda5a62d44ce7a401@mail.gmail.com> (raw)
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
next reply other threads:[~2010-03-08 20:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-08 20:07 Erik Faye-Lund [this message]
2010-03-10 13:13 ` git-rebase -i prunes commits with empty commit-message 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40aa078e1003081207u20046916yda5a62d44ce7a401@mail.gmail.com \
--to=kusmabite@googlemail.com \
--cc=git@vger.kernel.org \
--cc=kusmabite@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).