Re: StGIT discards local commits on "stg pull"
- From
Yann Dirson <ydirson@altern.org>
- Date
- Feb 20, 2007, 00:00 UTC
- Message-ID
- <20070220000059.GK4248@nan92-1-81-57-214-146.fbx.proxad.net>
- In-Reply-To
- <1171927720.2257.41.camel@dv>
On Mon, Feb 19, 2007 at 06:28:40PM -0500, Pavel Roskin wrote:
Show 11 quoted lines
> > I think the fail-safe solution would be to leave the old behaviour > > (i.e. git-pull and pull-does-rebase=no) and people that need to pull > > from branches like that described above would use the fetch+rebase > > approach. Ideally, we'll have this configurable per-branch (and could > > leave the global one as well if the most specific is not available, > > but should default to git-pull). > > By the way, it would be great to reduce all complexity to "one bit" per > branch. If stgit.internal-pull (the name is subject to improvement) is > on, "stgit pull" calls git-fetch and does rebase. Otherwise, it calls > git-pull. No need to configure two variables per branch.
Being able to specify the command to use makes it possible to hook to other SCM's (eg. using git-cvsimport, git-svn or similar).
I'll try to adapt by stg-cvs script to fit into this model some day (indeed, "pullcmd = stg-cvs fetch" may indeed already work).
Best regards,
-- Yann.