Re: Cannot rewrite branch(es) with a dirty working directory
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Sep 1, 2011, 17:14 UTC
- Message-ID
- <vpqmxeoqj61.fsf@bauges.imag.fr>
- In-Reply-To
- <CACyv8dfL-G0Px0aFe3VFNHP-1xRUDLsFxgUu3amPGzO7qKp7jQ@mail.gmail.com>
James Blackburn <jamesblackburn@gmail.com> 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.
> and status magically fixes this?
The index is considered dirty if the stat information (timestamp) is different. "git status" updates the stat-cache to consider unmodified content as up-to-date. So, it's normal that a "git status" repairs the dirty index.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/