Code

Call refresh_cache() when updating the user index for --only commits.
authorKristian Høgsberg <krh@redhat.com>
Mon, 12 Nov 2007 20:48:22 +0000 (15:48 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Nov 2007 01:05:03 +0000 (17:05 -0800)
commitef12b50d0cf0123377a6fb96584a287a6c24346b
treee0e43b2493b269c2172054ba5be0f60537d8c92e
parent129fa606365c172d07a5d98bea9345277f221363
Call refresh_cache() when updating the user index for --only commits.

We're guaranteeing the user that the index will be stat-clean after
git commit. Thus, we need to call refresh_cache() for the user index too,
in the 'git commit <paths>' case.

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