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

git (commit|tag) atomicity

From
Jon Jagger <jon@jaggersoft.com>
Date
Feb 28, 2012, 15:40 UTC
Message-ID
<CADWOt=j8gJvr88eNAfoYq_qGQvG6M_k-9MCuof_DRrH0sHRVCA@mail.gmail.com>
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?
That is, the output will be from before the git commit or after it but
not a mixture?
Logically, I assume so but cannot find anything definitive on google
or in my git books or from the lips of my friends.
Thanks for any help
Jon Jagger
Next: Holger Hellmuth
Message 1 of 6 in “git (commit|tag) atomicity”
  1. Jon JaggerFeb 28, 2012
  2. Holger HellmuthFeb 28, 2012
  3. Jon JaggerFeb 28, 2012
  4. Jakub NarebskiFeb 28, 2012
  5. Zach BrownFeb 28, 2012
  6. Jon JaggerFeb 28, 2012

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.