From: Ramkumar Ramachandra <artagnon@gmail.com>
To: Johannes Sixt <j6t@kdbg.org>
Cc: Madhu <enometh@meer.net>, git@vger.kernel.org
Subject: Re: git-rebase --abort eats files
Date: Mon, 28 Jun 2010 11:05:17 +0200 [thread overview]
Message-ID: <20100628090517.GA8091@debian> (raw)
In-Reply-To: <201006262009.30380.j6t@kdbg.org>
Hi Madhu,
Johannes Sixt wrote:
> On Samstag, 26. Juni 2010, Madhu wrote:
> > +++ b/git-rebase--interactive.sh
> > @@ -749,6 +749,7 @@ first and then run 'git rebase --continue' again."
> > git symbolic-ref HEAD $HEADNAME
> > ;;
> > esac &&
> > + git-reset &&
> > output git reset --hard $HEAD &&
> > rm -rf "$DOTEST"
> > exit
>
> No, it can't be that simple. If rebase stopped due to a conflict on a commit
> that added new files, then your version of rebase --abort will leave these
> new files behind as untracked.
Right. The interactive rebase has to be able to differentiate between
files that you added to resolve a conflict and files that you added to
retain at the end of the rebase -- and the interactive rebase has no
information about this. Hence, this problem can't be fixed without
explicitly finding out the intent of the user. In my opinion, you
should simply stash your changes before aborting the rebase instead of
adding files and figuring out some complex way of expressing intent.
-- Ram
next prev parent reply other threads:[~2010-06-28 9:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-26 12:53 git-rebase --abort eats files Madhu
2010-06-26 18:09 ` Johannes Sixt
2010-06-28 9:05 ` Ramkumar Ramachandra [this message]
2010-06-29 1:23 ` Madhu
2010-06-29 6:47 ` Pete Harlan
2013-08-31 15:26 ` git-rebase --continue eats commits Madhu
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=20100628090517.GA8091@debian \
--to=artagnon@gmail.com \
--cc=enometh@meer.net \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
/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).