From: Thomas Rast Date: Sun, 18 Jan 2009 02:06:38 GMT Subject: Re: [PATCH] bash: offer to show (un)staged changes Message-ID: <200901180306.40700.trast@student.ethz.ch> In-Reply-To: <7vwsct2xd1.fsf@gitster.siamese.dyndns.org> Junio C Hamano wrote: > Thomas Rast writes: > > > + if test ! -z "$GIT_PS1_EXPENSIVE"; then > > + git update-index --refresh >/dev/null 2>&1 || w="*" > > This makes the feature unavailable for people who care about the stat > dirtiness and explicitly set diff.autorefreshindex to false, doesn't it? True, and I admit I didn't know there was an option to change that. OTOH git-diff-files doesn't normally update the index even if the option is set. Should I ask 'git diff --exit-code --raw' or some such instead? (Why would people want to keep the stat info dirty even though there may not have been any changes?) -- Thomas Rast trast@{inf,student}.ethz.ch