Make "git notes add" more user-friendly when there are existing notes
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index abef5b62adb1c43b078189627341d96d4507e67c..9f06d215790ef98c2138ab26c1a9b4ddafd33c55 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -543,6 +543,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 *);