[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>
- Re: VC mode and git, (continued)
- Re: VC mode and git, Eli Zaretskii, 2015/03/27
- Re: VC mode and git, Stephen J. Turnbull, 2015/03/27
- Re: VC mode and git, Eli Zaretskii, 2015/03/27
- Re: VC mode and git, Stephen J. Turnbull, 2015/03/28
- Re: VC mode and git, Eli Zaretskii, 2015/03/28
- Re: VC mode and git, Richard Stallman, 2015/03/28
- Re: VC mode and git, Eli Zaretskii, 2015/03/28
- Re: VC mode and git, Richard Stallman, 2015/03/29
- Re: VC mode and git, Richard Stallman, 2015/03/28
- Re: VC mode and git, Barry Warsaw, 2015/03/28
- Re: VC mode and git,
Eric S. Raymond <=
- Re: VC mode and git, Eli Zaretskii, 2015/03/24
- Re: VC mode and git, Eric S. Raymond, 2015/03/24
- Re: VC mode and git, chad, 2015/03/24
- Re: VC mode and git, Eli Zaretskii, 2015/03/24
- Re: VC mode and git, Jan D., 2015/03/25
- Re: VC mode and git, Eli Zaretskii, 2015/03/25
- Re: VC mode and git, Jan D., 2015/03/25
- Re: VC mode and git, Eli Zaretskii, 2015/03/25
- Re: VC mode and git, Eric S. Raymond, 2015/03/25
- Re: VC mode and git, Stefan Monnier, 2015/03/25