summaryrefslogtreecommitdiff
path: root/builtin-add.c
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 /builtin-add.c
parent7da3bf372cfcd25ea44164afb90c306836b62e23 (diff)
downloadgit-fd1c3bf0533c6cc7e44646d4e52d378d5b5a1631.tar.gz
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 'builtin-add.c')
-rw-r--r--builtin-add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-add.c b/builtin-add.c
index 871e23f0f6..7d1d5dc244 100644
--- a/builtin-add.c
+++ b/builtin-add.c
@@ -205,7 +205,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
}
for (i = 0; i < dir.nr; i++)
- add_file_to_index(dir.entries[i]->name, verbose);
+ add_file_to_cache(dir.entries[i]->name, verbose);
if (active_cache_changed) {
if (write_cache(newfd, active_cache, active_nr) ||