git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "git svn reset" only resets current branch ?

From
YDYann Dirson <ydirson@linagora.com>
Date
Jul 8, 2009, 15:41 UTC
Message-ID
<50232.10.0.0.1.1247067661.squirrel@intranet.linagora.com>
Show 14 quoted lines
> 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.
Message 1 of 1 in “Re: "git svn reset" only resets current branch ?”
  1. Yann DirsonJul 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.