From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id E0EE120248 for ; Wed, 13 Mar 2019 21:00:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727336AbfCMVAo (ORCPT ); Wed, 13 Mar 2019 17:00:44 -0400 Received: from cloud.peff.net ([104.130.231.41]:49604 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727126AbfCMVAn (ORCPT ); Wed, 13 Mar 2019 17:00:43 -0400 Received: (qmail 23956 invoked by uid 109); 13 Mar 2019 21:00:44 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Wed, 13 Mar 2019 21:00:44 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 15998 invoked by uid 111); 13 Mar 2019 20:59:48 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.94) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) SMTP; Wed, 13 Mar 2019 16:59:48 -0400 Authentication-Results: peff.net; auth=none Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Wed, 13 Mar 2019 16:59:26 -0400 Date: Wed, 13 Mar 2019 16:59:26 -0400 From: Jeff King To: Sergio Durigan Junior Cc: Phillip Wood , Elijah Newren , phillip.wood@dunelm.org.uk, Duy Nguyen , Git Mailing List Subject: Re: Possible race condition with git-rebase + .git/index.lock Message-ID: <20190313205926.GB5397@sigill.intra.peff.net> References: <87k1h55bx0.fsf@sergiodj.net> <877ed459eh.fsf@sergiodj.net> <8736nr6g94.fsf@sergiodj.net> <87pnqu4i1n.fsf@sergiodj.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87pnqu4i1n.fsf@sergiodj.net> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, Mar 13, 2019 at 04:48:36PM -0400, Sergio Durigan Junior wrote: > Huh, I do have some of the files opened in Emacs! They're in > background, but indeed, now that you mentioned I remember that Emacs > keeps track of changes and invokes "git status" sometimes. Next time I > see the bug, I'll try closing the files and see if it happens again. If Emacs (I guess maybe magit?) is running "git status" behind the scenes, you might benefit from teaching it to use "git --no-optional-locks status" instead. See the section "BACKGROUND REFRESH" in "git help status" for more discussion. -Peff