Re: "git svn reset" only resets current branch ?
- From
- Eric 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