Re: git (commit|tag) atomicity
- From
Jon Jagger <jon@jaggersoft.com>
- Date
- Feb 28, 2012, 17:12 UTC
- Message-ID
- <CADWOt=ig5=Bhhkjs9-wbm2djtwWPOfPGtYt9pH-U3YuQ+iyXzg@mail.gmail.com>
- In-Reply-To
- <4F4D04F4.80905@ira.uka.de>
On Tue, Feb 28, 2012 at 4:46 PM, Holger Hellmuth <hellmuth@ira.uka.de> wrote:
Show 16 quoted lines
> On 28.02.2012 16:40, Jon Jagger wrote: >> >> Hi, >> I don't know a lot about git - I use it as a tool behind >> http://cyber-dojo.com >> which is an online coding dojo server. >> I have a quick question... >> If I do a >> git commit .... >> in one thread and a >> git tag | sort -g >> in another thread is the output of the git tag guaranteed to be atomic? > > > Can a "git commit" add or remove tags? AFAIK it can't and so the two > commands don't conflict in any way.
Sorry, I failed to ask the question I really wanted to ask...
I mean in one thread git tag -m 'AAA' BBB HEAD and in another thread git tag | sort -g
and the question is whether the output of the git tag|sort -g command is guaranteed to be from before the git tag -m... or from after the git tag -m... but not "interleaved" in any way....
Cheers Jon