{"thread":{"id":"46444","subject":"index.lock porcelain interface?","startedAt":"2017-07-23T07:27:02Z","lastAt":"2017-07-23T07:27:02Z","messageCount":1,"participants":["Jason Pyeron"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"324909","messageId":"DE816FDC2674421DB90DC132F963A178@blackfat","threadId":"46444","inReplyTo":null,"subject":"index.lock porcelain interface?","fromName":"Jason Pyeron","fromEmail":"jpyeron@pdinc.us","sentAt":"2017-07-23T07:07:33Z","receivedAt":"2017-07-23T07:27:02Z","isPatch":false,"sender":{"key":"jpyeron@pdinc.us","avatar":"https://gravatar.com/avatar/c2e53452caa53d940768a1ffc9cf76196d851b9b534b7a39cd39852a70a0508f?d=mp&s=160"},"body":"While working on some scripts for continuous integration, we wanted to check\nif git was doing anything, before running our script.\n\nThe best we came up with was checking for the existence of index.lock or if\na merge in progress. The MERGE_HEAD can be checked, but we chose to use git\nstatus --porcelain=v2 . Is there a better check than does .git/index.lock\nexists, e.g. a porcelain interface?\n\n-Jason\n\n--\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n-                                                               -\n- Jason Pyeron                      PD Inc. http://www.pdinc.us -\n- Principal Consultant              10 West 24th Street #100    -\n- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -\n-                                                               -\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n\n"}]}