From: Paul Sokolovsky <pmiscml@gmail.com>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
Cc: git@vger.kernel.org
Subject: Re: git rebase is confused about commits w/o textual changes (e.g. chmod's)
Date: Fri, 4 Oct 2013 23:45:30 +0300 [thread overview]
Message-ID: <20131004234530.3d3a54cc@x34f> (raw)
In-Reply-To: <20131004202853.GB4165@vauxhall.crustytoothpaste.net>
Hello,
On Fri, 4 Oct 2013 20:28:54 +0000
"brian m. carlson" <sandals@crustytoothpaste.net> wrote:
> On Sat, Sep 28, 2013 at 02:32:44AM +0300, Paul Sokolovsky wrote:
> > $ git --version
> > git version 1.8.4
> >
> > Specifically from Ubuntu PPA:
> > http://ppa.launchpad.net/git-core/ppa/ubuntu
> >
> >
> > Script to reproduce the issue is:
> > https://gist.github.com/pfalcon/6736632 , based on a real-world
> > case of merging histories of a fork created from a flat tree
> > snapshot with the original project it was created from.
>
> Okay, as I suspected, the rebase would have resulted in an empty
> commit. In this particular case, the commit being rebased changed the
> permissions on the files, but those permissions are already correct,
> so the commit really is empty, even considering permissions. It
> looks like git is doing the right thing here.
Hmm, ok, thanks for investigation!
But then, about this empty commit handling behavior by rebase.
Low-level developer in me understands the current behavior - if we
expect changes, but there're none, then it as well may be something
wrong, so let's not play smartass, but tell user outright what's
happening. But higher-level user in me knows that rebase is pretty
trusty nowadays, and real-world cause of empty commits during
rebase is that the change is already upstream. So, can we have
something like --skip-empty? Then some good time later, we can talk
about changing defaults ;-).
--
Best regards,
Paul mailto:pmiscml@gmail.com
prev parent reply other threads:[~2013-10-04 20:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 19:56 git rebase is confused about commits w/o textual changes (e.g. chmod's) Paul Sokolovsky
2013-09-27 22:28 ` brian m. carlson
2013-09-27 23:32 ` Paul Sokolovsky
2013-10-04 20:28 ` brian m. carlson
2013-10-04 20:45 ` Paul Sokolovsky [this message]
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=20131004234530.3d3a54cc@x34f \
--to=pmiscml@gmail.com \
--cc=git@vger.kernel.org \
--cc=sandals@crustytoothpaste.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.