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

index.lock porcelain interface?

From
Jason Pyeron <jpyeron@pdinc.us>
Date
Jul 23, 2017, 07:07 UTC
Message-ID
<DE816FDC2674421DB90DC132F963A178@blackfat>

While working on some scripts for continuous integration, we wanted to check if git was doing anything, before running our script.

The best we came up with was checking for the existence of index.lock or if a merge in progress. The MERGE_HEAD can be checked, but we chose to use git status --porcelain=v2 . Is there a better check than does .git/index.lock exists, e.g. a porcelain interface?

-Jason
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Message 1 of 1 in “index.lock porcelain interface?”
  1. Jason PyeronJul 23, 2017

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.