git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Atomicity of git-push operation.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Dec 23, 2009, 15:25 UTC
Message-ID
<20091223152529.GC13762@spearce.org>
In-Reply-To
<4B32044A.7010601@9livesdata.com>
Jan Zalcman <zalcman@9livesdata.com> wrote:
>  I have a simple question about "push" operation but I couldn't find an
> answer: is git-push (also with --tags flag) atomic ? Especially: if refs
> changing (during push) is atomic ?
Yes, its atomic, at the per-ref level.

If you push 3 refs, and one of them updates during the push, the other two will push successfully, but the one that was updated will be rejected.

-- 
Shawn.
Previous: Jan Zalcman
Message 2 of 2 in “Atomicity of git-push operation.”
  1. Jan ZalcmanDec 23, 2009
  2. Shawn O. PearceDec 23, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.