summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-04-03 19:33:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-04-03 19:33:05 (GMT)
commit44ec754dc766e38684d9ad4563019378730eea82 (patch)
treee8be72b52ab4827a58dc72518dbc5068313931f1 /cache.h
parentbe57695d77c4303798796510585618c57e1bba63 (diff)
parent483fbe2b7cb89ddcf700a677735d21aa176bc5a6 (diff)
downloadgit-44ec754dc766e38684d9ad4563019378730eea82.zip
git-44ec754dc766e38684d9ad4563019378730eea82.tar.gz
git-44ec754dc766e38684d9ad4563019378730eea82.tar.bz2
Merge branch 'jc/index-update-if-able' into maint
* jc/index-update-if-able: update $GIT_INDEX_FILE when there are racily clean entries diff/status: refactor opportunistic index update
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 50de992..342b410 100644
--- a/cache.h
+++ b/cache.h
@@ -527,6 +527,7 @@ extern NORETURN void unable_to_lock_index_die(const char *path, int err);
extern int hold_lock_file_for_update(struct lock_file *, const char *path, int);
extern int hold_lock_file_for_append(struct lock_file *, const char *path, int);
extern int commit_lock_file(struct lock_file *);
+extern void update_index_if_able(struct index_state *, struct lock_file *);
extern int hold_locked_index(struct lock_file *, int);
extern int commit_locked_index(struct lock_file *);