emacs-devel
[Top][All Lists]
Advanced

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

Re: VC mode and git


From: Eli Zaretskii
Subject: Re: VC mode and git
Date: Tue, 24 Mar 2015 22:18:52 +0200

> Date: Tue, 24 Mar 2015 15:56:38 -0400
> From: "Eric S. Raymond" <address@hidden>
> Cc: Sebastien Vauban <address@hidden>, address@hidden
> 
> 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.  

So perhaps there should be a defcustom that would switch between
several popular workflows, and "C-x v v" could then support each one
of them, when chosen.



reply via email to

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