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

Do porcelain command require lock management?

From
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Date
Oct 24, 2020, 14:46 UTC
Message-ID
<20201024144637.cvwa22f2y4tvfn4z@chatter.i7.local>
Hello:

A script I'm writing performs a succession of porcelain commands to create a commit in a bare git repository:

git hash-object git mktree git commit-tree git update-ref

Do I need to manage external locking around these commands to avoid any concurrency problems, or will git take care of that?

-K
Next: brian m. carlson
Message 1 of 4 in “Do porcelain command require lock management?”
  1. Konstantin RyabitsevOct 24, 2020
  2. brian m. carlsonOct 25, 2020
  3. Konstantin RyabitsevOct 26, 2020
  4. Junio C HamanoOct 26, 2020

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.