builtin-commit: Refresh cache after adding files.
commitd37d320386369375b4e5b95b98517503125376f9
authorKristian Høgsberg <krh@redhat.com>
Fri, 9 Nov 2007 16:40:27 +0000 (9 11:40 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Nov 2007 01:05:03 +0000 (22 17:05 -0800)
tree63b3b6035e62dc91f80166f412b4d06b367b7da2
parent741707b1e2261d522a92948ff7d7b897ff00e587
builtin-commit: Refresh cache after adding files.

We have promised our users that after running git-status or
git-commit the index will be refreshed for a long time since
these commands were introduced.  Do refresh the index before
writing it out to keep the promise.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c