Code

git status: refresh the index if possible
authorMarkus Heidelberg <markus.heidelberg@web.de>
Fri, 2 Apr 2010 21:44:21 +0000 (23:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 3 Apr 2010 04:25:59 +0000 (21:25 -0700)
commit4bb6644d03f6932b94c24c3825e28865f493b692
treea91894ee1aabd73cc58488ac8dee36b51dc1220d
parent4c926b37c21a088163871bb8e6ccdfc4b4952e34
git status: refresh the index if possible

This was already the case before commit 9e4b7ab6 (git status: not
"commit --dry-run" anymore, 2009-08-15) with the difference that it died
at failure.
It got lost during the new implementation of "git status", which was
meant to only change behaviour when invoked with arguments.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
t/t7508-status.sh