From: Eric Wong <normalperson@yhbt.net>
To: Benoit Sigoure <tsuna@lrde.epita.fr>
Cc: git list <git@vger.kernel.org>
Subject: Re: git svn dcommit with a dirty index
Date: Sat, 10 Nov 2007 17:42:52 -0800 [thread overview]
Message-ID: <20071111014252.GA18748@mayonaise> (raw)
In-Reply-To: <DBC1E504-9007-4C89-9728-2DDBAFF2053B@lrde.epita.fr>
Benoit Sigoure <tsuna@lrde.epita.fr> wrote:
> Hello list,
> From what I understand, when using dcommit, git-svn uses rebase to
> "sync" the history with what has just been committed. If the index
> is in a dirty state, this will cause trouble. I thought about using
> git-stash and then git stash apply --index but I'm afraid this could
> be confusing if dcommit actually brings more revision in that the
> ones it has just committed. I'm not sure this is possible and even
> if it is, it might not be troublesome since if the commits are
> accepted in the SVN repo, they surely don't overlap with commits that
> have been sent in the mean time. But it's risky, so I don't know
> what to do. If we use the stash approach, we might want to tell the
> user that we bailed out because of a problem that needs to be fixed
> and that he can recover his changes with git stash apply --index.
>
> Or we should simply check that the index isn't dirty beforehand and
> refuse to dcommit if it is.
>
> Any suggestion?
The latter option is much simpler. I actually thought there was already
a check in dcommit that prevents it from committing with a dirty index,
but apparently not...
> PS OT: Eric, have you made any progress on the svn:externals<-
> >submodules mapping? I badly need this feature, but I don't want to
> start to work on it if you're currently working on it (or about to
> deal with it) to avoid unecessary effort duplication.
Oops, sorry. I've been busy and forgetful. I'll try to work on it
later tonight or tomorrow.
--
Eric Wong
prev parent reply other threads:[~2007-11-11 1:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-07 19:06 git svn dcommit with a dirty index Benoit Sigoure
2007-11-11 1:42 ` Eric Wong [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=20071111014252.GA18748@mayonaise \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=tsuna@lrde.epita.fr \
/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.