aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-01 22:14:40 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-05 15:07:16 -0700
commitfd1c3bf0533c6cc7e44646d4e52d378d5b5a1631 (patch)
treed24a361e357c81331a3544c2a742bef56a382d62 /cache.h
parent7da3bf372cfcd25ea44164afb90c306836b62e23 (diff)
downloadgit-fd1c3bf0533c6cc7e44646d4e52d378d5b5a1631.tar.gz
git-fd1c3bf0533c6cc7e44646d4e52d378d5b5a1631.tar.xz
Rename add_file_to_index() to add_file_to_cache()
This function was not called "add_file_to_cache()" only because an ancient program, update-cache, used that name as an internal function name that does something slightly different. Now that is gone, we can take over the better name. The plan is to name all functions that operate on the default index xxx_cache(). Later patches create a variant of them that take an explicit parameter xxx_index(), and then turn xxx_cache() functions into macros that use "the_index". Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 467e6a579..ece0c041f 100644
--- a/cache.h
+++ b/cache.h
@@ -187,7 +187,7 @@ extern int add_cache_entry(struct cache_entry *ce, int option);
extern struct cache_entry *refresh_cache_entry(struct cache_entry *ce, int really);
extern int remove_cache_entry_at(int pos);
extern int remove_file_from_cache(const char *path);
-extern int add_file_to_index(const char *path, int verbose);
+extern int add_file_to_cache(const char *path, int verbose);
extern int ce_same_name(struct cache_entry *a, struct cache_entry *b);
extern int ce_match_stat(struct cache_entry *ce, struct stat *st, int);
extern int ce_modified(struct cache_entry *ce, struct stat *st, int);