Add shortcut in refresh_cache_ent() for marked entries.
commitaa9349d449bbf6bd7d28a5279f30a9734f77da8f
authorMarius Storm-Olsen <marius@trolltech.com>
Fri, 30 May 2008 12:38:35 +0000 (30 14:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 31 May 2008 21:18:20 +0000 (31 14:18 -0700)
treef37b6bd112618d9e7a0beb72db44cd29b2107902
parentb7f685a754fc7ad313ecf7ad717f3ce35195ff33
Add shortcut in refresh_cache_ent() for marked entries.

When a cache entry has been marked as CE_VALID, the user has
promised us that any change in the work tree does not matter.
Just mark the entry as up-to-date, and continue.

Signed-off-by: Marius Storm-Olsen <marius@trolltech.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c