From: John Keeping <john@keeping.me.uk>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>,
Git List <git@vger.kernel.org>
Subject: Re: [PATCH 3/3] pull: introduce --[no-]autostash and pull.autostash
Date: Mon, 15 Apr 2013 19:15:51 +0100 [thread overview]
Message-ID: <20130415181551.GJ2278@serenity.lan> (raw)
In-Reply-To: <CALkWK0=6E=s6kJysMo2yC22c3pvCWn90S5neRyP0jpzpYrZboA@mail.gmail.com>
On Mon, Apr 15, 2013 at 11:38:20PM +0530, Ramkumar Ramachandra wrote:
> Junio C Hamano wrote:
> > If "rebase -m" were to be taught to do this, the natural way to do
> > so is to
> >
> > (1) Prepare the todo the usual way
> > (2) Do those two commits for index and working tree
> > (3) Append two insns (exec reset HEAD^ and exec reset --soft
> > HEAD^) at the end of the rebase todo file.
>
> Er, no. I don't want to touch the instruction sheet. It becomes
> especially problematic in -i, when the instruction sheet is
> user-editable.
>
> > "rebase--am" could also be told to generate (on the preparation
> > side) and notice (on the application side) a pair of patch files at
> > the end that represent the index state and the working tree state
> > and apply them without making the WIP part into a commit.
>
> Ugh, no. I don't want to leak the implementation detail of autostash
> into specific rebases. Why can't I wrap the last statment in
> git-rebase.sh in git stash/ git stash pop like I did with git-pull.sh?
How does that work with the following:
- run_specific_rebase fails, so the user needs to fix it up and then run
"git rebase --continue". We don't want to pop the stash in this case.
- the user runs "git rebase --continue" with staged changes, knowing the
git-rebase will commit those. We don't want to create a stash in this
case since it will remove the changes the user wants to commit.
next prev parent reply other threads:[~2013-04-15 18:16 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-13 21:15 [PATCH v2 0/3] Introduce pull.autostash Ramkumar Ramachandra
2013-04-13 21:15 ` [PATCH 1/3] pull: prefer invoking "git <command>" over "git-<command>" Ramkumar Ramachandra
2013-04-14 9:09 ` Philip Oakley
2013-04-13 21:15 ` [PATCH 2/3] t5521 (pull-options): use test_commit() where appropriate Ramkumar Ramachandra
2013-04-13 21:15 ` [PATCH 3/3] pull: introduce --[no-]autostash and pull.autostash Ramkumar Ramachandra
2013-04-15 5:47 ` Junio C Hamano
2013-04-15 12:31 ` Ramkumar Ramachandra
2013-04-15 15:16 ` Junio C Hamano
2013-04-15 16:31 ` Ramkumar Ramachandra
2013-04-15 8:17 ` Matthieu Moy
2013-04-15 9:52 ` Junio C Hamano
2013-04-15 10:58 ` Matthieu Moy
2013-04-15 13:29 ` Ramkumar Ramachandra
2013-04-15 13:45 ` Matthieu Moy
2013-04-15 14:31 ` Ramkumar Ramachandra
2013-04-15 16:17 ` Matthieu Moy
2013-04-15 16:52 ` Ramkumar Ramachandra
2013-04-16 3:09 ` Jonathan Nieder
2013-04-15 13:15 ` Ramkumar Ramachandra
2013-04-15 13:40 ` Matthieu Moy
2013-04-15 13:56 ` Ramkumar Ramachandra
2013-04-15 15:04 ` Ramkumar Ramachandra
2013-04-15 16:13 ` Matthieu Moy
2013-04-15 16:32 ` Junio C Hamano
2013-04-15 16:45 ` Ramkumar Ramachandra
2013-04-15 16:53 ` John Keeping
2013-04-15 17:05 ` Ramkumar Ramachandra
2013-04-16 3:14 ` Jonathan Nieder
2013-04-16 4:55 ` Ramkumar Ramachandra
2013-04-16 5:26 ` Jonathan Nieder
2013-04-15 15:36 ` Junio C Hamano
2013-04-15 16:38 ` Ramkumar Ramachandra
2013-04-15 17:58 ` Junio C Hamano
2013-04-15 18:08 ` Ramkumar Ramachandra
2013-04-15 18:15 ` John Keeping [this message]
2013-04-15 22:17 ` Matthieu Moy
2013-04-16 9:20 ` Ramkumar Ramachandra
2013-04-16 9:44 ` Matthieu Moy
2013-04-16 9:55 ` Ramkumar Ramachandra
2013-04-16 10:36 ` Matthieu Moy
2013-04-16 11:22 ` Matthieu Moy
2013-04-16 17:42 ` Junio C Hamano
2013-04-16 16:50 ` Phil Hord
2013-04-16 20:53 ` Ramkumar Ramachandra
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=20130415181551.GJ2278@serenity.lan \
--to=john@keeping.me.uk \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=artagnon@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).