{"thread":{"id":"22014","subject":"Atomicity of git-push operation.","startedAt":"2009-12-23T11:51:38Z","lastAt":"2009-12-23T15:25:29Z","messageCount":2,"participants":["Jan Zalcman","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"130278","messageId":"4B32044A.7010601@9livesdata.com","threadId":"22014","inReplyTo":null,"subject":"Atomicity of git-push operation.","fromName":"Jan Zalcman","fromEmail":"zalcman@9livesdata.com","sentAt":"2009-12-23T11:51:38Z","receivedAt":"2009-12-23T11:51:38Z","isPatch":false,"sender":{"key":"zalcman@9livesdata.com","avatar":null},"body":"Hi,\n  I have a simple question about \"push\" operation but I couldn't find an\nanswer: is git-push (also with --tags flag) atomic ? Especially: if refs\nchanging (during push) is atomic ?\nThanks,\nJanek\n"},{"id":"130280","messageId":"20091223152529.GC13762@spearce.org","threadId":"22014","inReplyTo":"4B32044A.7010601@9livesdata.com","subject":"Re: Atomicity of git-push operation.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-12-23T15:25:29Z","receivedAt":"2009-12-23T15:25:29Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Jan Zalcman <zalcman@9livesdata.com> wrote:\n>  I have a simple question about \"push\" operation but I couldn't find an\n> answer: is git-push (also with --tags flag) atomic ? Especially: if refs\n> changing (during push) is atomic ?\n\nYes, its atomic, at the per-ref level.\n\nIf you push 3 refs, and one of them updates during the push, the\nother two will push successfully, but the one that was updated will\nbe rejected.\n\n-- \nShawn.\n"}]}