From: Linus Torvalds Date: Fri, 09 Feb 2007 20:59:22 GMT Subject: Re: 'git status' is not read-only fs friendly Message-ID: In-Reply-To: On Fri, 9 Feb 2007, Marco Costalba wrote: > > If I modify qgit in running 'git runstatus' as a fallback in case 'git > status' exits with an error (without checking what kind of error > exactly) could be an acceptable path or could hide subtle > side-effects? I have no the knowledge to answer this by hand. It's probably better for you to just - run "git update-index --refresh" and don't care about the exit value - run "git runstatus" unconditionally which should basically get you something working. HOWEVER, it's also quite possible that "git-commit.sh" should just do this on its own. If the update-index fails, we really only care if we literally use the index later to *write* something, ie the commit case. For just "git status", maybe we should just silently ignore the error.. Linus