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

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

From
EWEric Wong <normalperson@yhbt.net>
Date
Jul 7, 2009, 20:28 UTC
Message-ID
<20090707202826.GA8618@dcvr.yhbt.net>
In-Reply-To
<46974.10.0.0.1.1246953668.squirrel@intranet.linagora.com>
Yann Dirson <ydirson@linagora.com> wrote:
Show 12 quoted lines
> > I think the current behavior is a reasonable default; it's least
> > surprising to me and the user could more easily rerun with "--all" if
> > needed.  If --all were the default, the user could potentially
> > have to refetch a lot of data they didn't want to.
> 
> As an alternative, we could also allow "git svn reset" to take us back
> into the future to undo any such mistake without refetching.
> 
> I'm not sure it would be the best to keep reset act on a single branch,
> where eg. fetch acts on all branches, and already has a --all flag, which
> is not yet documented, and seems to have a different meaning (if that
> wasn't obvious, I have still not had a look at what it really does ;)

fetch with --all fetches from all "svn-remotes" defined in the config (it's rare to have more than one). It's roughly equivalent to:

  git remote | xargs -n1 git fetch

As far as reset behavior goes, I'll leave you and Ben to decide how/what to do since I've never used it myself (I rarely even use git svn nowadays).

-- 
Eric Wong
Previous: Ben Jackson
Message 3 of 3 in “Re: "git svn reset" only resets current branch ?”
  1. Yann DirsonJul 7, 2009
  2. Ben JacksonJul 7, 2009
  3. Eric WongJul 7, 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.