[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, 31 Mar 2015 14:40:13 +0300 |
> From: Stefan Monnier <address@hidden>
> Date: Mon, 30 Mar 2015 16:37:48 -0400
> Cc: address@hidden, address@hidden, address@hidden,
> address@hidden, address@hidden
>
> > Then please write it up, and let's see it in action.
>
> It was already provided:
>
> #!/bin/sh
> git push || git reset --soft HEAD^
Are you sure this is all that's needed? I have at least 2 potential
issues with it:
. If the commit fails, will the hook run anyway? (I cannot find any
documentation on this.)
. If the push fails and the hook runs "git reset", will the commit
command exit with a non-zero status? (I'm guessing not, but again
found no documentation.) If it exits with a zero status anyway,
then "C-x v v" will not know the operation failed, would it?
- Re: VC mode and git, (continued)
- Re: VC mode and git, Richard Stallman, 2015/03/28
- Re: VC mode and git, Richard Stallman, 2015/03/28
- Re: VC mode and git, Stefan Monnier, 2015/03/28
- Re: VC mode and git, Richard Stallman, 2015/03/29
- Re: VC mode and git, Mike Gerwitz, 2015/03/30
- Re: VC mode and git, Mike Gerwitz, 2015/03/30
- Re: VC mode and git, Eli Zaretskii, 2015/03/30
- Re: VC mode and git, Stefan Monnier, 2015/03/30
- Re: VC mode and git, Eli Zaretskii, 2015/03/30
- Re: VC mode and git, Stefan Monnier, 2015/03/30
- Re: VC mode and git,
Eli Zaretskii <=
- Re: VC mode and git, Stephen J. Turnbull, 2015/03/30
- Re: VC mode and git, Eli Zaretskii, 2015/03/30
- Re: VC mode and git, Stephen J. Turnbull, 2015/03/31
- Re: VC mode and git, Harald Hanche-Olsen, 2015/03/31
- Re: VC mode and git, Harald Hanche-Olsen, 2015/03/31
- Re: VC mode and git, Andreas Schwab, 2015/03/31
- Re: VC mode and git, Harald Hanche-Olsen, 2015/03/31
- Re: VC mode and git, Richard Stallman, 2015/03/31
- Re: VC mode and git, Andreas Schwab, 2015/03/31
- Re: VC mode and git, Harald Hanche-Olsen, 2015/03/31