From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: Cannot rewrite branch(es) with a dirty working directory Date: Thu, 1 Sep 2011 17:50:03 -0400 Message-ID: <20110901215003.GC16308@sigill.intra.peff.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: James Blackburn , git@vger.kernel.org To: Matthieu Moy X-From: git-owner@vger.kernel.org Thu Sep 01 23:50:15 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QzF9K-0005VR-Lm for gcvg-git-2@lo.gmane.org; Thu, 01 Sep 2011 23:50:15 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758061Ab1IAVuH (ORCPT ); Thu, 1 Sep 2011 17:50:07 -0400 Received: from 99-108-226-0.lightspeed.iplsin.sbcglobal.net ([99.108.226.0]:51449 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757961Ab1IAVuG (ORCPT ); Thu, 1 Sep 2011 17:50:06 -0400 Received: (qmail 24745 invoked by uid 107); 1 Sep 2011 21:50:52 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.84) with ESMTPA; Thu, 01 Sep 2011 17:50:52 -0400 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Thu, 01 Sep 2011 17:50:03 -0400 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, Sep 01, 2011 at 07:14:30PM +0200, Matthieu Moy wrote: > James Blackburn writes: > > > Is there a particular reason why filter-branch thinks the tree is > > dirty, > > No idea. It comes after a "git reset --hard", so it's supposed to be > clean. I wonder if there are racily clean entries[1] in the index, and diff-index reports them as potential changes. At any rate, filter-branch should probably be refreshing the index before checking for dirtiness, which would give the correct answer either way. -Peff [1] See Documentation/technical/racy-git.txt for more information.