From: "Yann Dirson" <ydirson@linagora.com>
To: "Ben Jackson" <ben@ben.com>
Cc: "Eric Wong" <normalperson@yhbt.net>, git@vger.kernel.org
Subject: Re: "git svn reset" only resets current branch ?
Date: Wed, 8 Jul 2009 17:41:01 +0200 (CEST) [thread overview]
Message-ID: <50232.10.0.0.1.1247067661.squirrel@intranet.linagora.com> (raw)
> On Tue, Jul 07, 2009 at 10:01:08AM +0200, Yann Dirson wrote:
>>
>> As an alternative, we could also allow "git svn reset" to take us back
>> into the future to undo any such mistake without refetching.
>
> You can't do that directly, since data is destroyed (specifically, the
> rev_map is truncated back to the selected revision). However, you can
> "git reset" the branch back to where it was using the reflog, and then
> the next git-svn command you run will rebuild the rev_map from the
> comment metadata (obviously you're out of luck if you set "no_metadata").
>
> It's possible that "git-svn reset" should be saving something like
> ORIG_HEAD (comments welcome) but that does conflict with the idea of
> adding "--all" or defaulting to "--all" behavior.
Well, adding --all would probably be better after all.
next reply other threads:[~2009-07-08 15:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 15:41 Yann Dirson [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-07-07 8:01 "git svn reset" only resets current branch ? Yann Dirson
2009-07-07 18:21 ` Ben Jackson
2009-07-07 20:28 ` Eric Wong
2009-07-06 10:07 Yann Dirson
2009-07-06 21:29 ` Eric Wong
2009-07-06 21:56 ` Ben Jackson
2009-07-06 22:14 ` Eric Wong
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=50232.10.0.0.1.1247067661.squirrel@intranet.linagora.com \
--to=ydirson@linagora.com \
--cc=ben@ben.com \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.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 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).