[Top][All Lists]

[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: Thu, 26 Mar 2015 18:59:17 +0200

> From: Tassilo Horn <address@hidden>
> Cc: Richard Stallman <address@hidden>,  address@hidden,  address@hidden,  
> address@hidden
> Date: Thu, 26 Mar 2015 12:38:15 +0100
> In the same way, you could set up a git post-commit hook that pushes if
> you wish by placing a scipt with contents
> --8<---------------cut here---------------start------------->8---
> #!/bin/sh
> git push
> --8<---------------cut here---------------end--------------->8---
> in .git/hooks/post-commit/.

What happens if the commit succeed, but the push in the hook fails?
Will Git roll back the commit?

If not, then this isn't reallt a good emulation of bzr's bound
branches, because there a commit+push was an atomic operation: either
both succeeded, or none at all.

reply via email to

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