path: root/builtin-mv.c
diff options
authorJunio C Hamano <>2007-04-02 05:14:40 (GMT)
committerJunio C Hamano <>2007-04-05 22:07:16 (GMT)
commitfd1c3bf0533c6cc7e44646d4e52d378d5b5a1631 (patch)
treed24a361e357c81331a3544c2a742bef56a382d62 /builtin-mv.c
parent7da3bf372cfcd25ea44164afb90c306836b62e23 (diff)
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 <>
Diffstat (limited to 'builtin-mv.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-mv.c b/builtin-mv.c
index 737af35..c4ab478 100644
--- a/builtin-mv.c
+++ b/builtin-mv.c
@@ -273,7 +273,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
for (i = 0; i <; i++) {
const char *path = added.items[i].path;
- add_file_to_index(path, verbose);
+ add_file_to_cache(path, verbose);
for (i = 0; i <; i++) {