[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VC mode and git

From: Eric S. Raymond
Subject: Re: VC mode and git
Date: Tue, 24 Mar 2015 15:56:38 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

Eli Zaretskii <address@hidden>:
> A related question is: does "C-x v v" at all make sense with Git and
> other dVCSes?  If it does, what would be the DWIM cycle there?  E.g.,
> would it make sense for "C-x v v" to push when the previous action was
> commit and there are not uncommitted changes?

That's an interesting idea.  And certainly doable.

Whether it's really DWIM depends on what workflow git's primitives are being
used to implement. It makes the most sense if the relationship between the
local and remote repo is the simplest one - the local repo is essentially
a cache for the remote, and nobody else pushes to that remote.

It makes less sense if other people are pushing to the remote.  You wander
into several complications here; one is that the remote may reject the push
due to it not being a fast-forward from the repo tip.  There are 
workflow-sensitive choices about what to do in this situation and thus no
one right thing for VC to do here.  

Accordingly, I'm opposed to it at this time.  But my mind could be changed
by a more detailed proposal generic across DVCSes under which the push
operation pays attention to some set of policy switches.
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]