Rename internal function "add_file_to_cache" in builtin-update-index.c
I'd like to consistently name all index-layer functions that operate on the default index xxx_cache(), and this application specific function interferes with the plan. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Apr 1, 2007 at 22:07 UTC
81e1bc47687dc78598ad003f0d02a328a6ddae72
1 file changed
+2
-2
builtin-update-index.c
+2
-2
@@ -60,7 +60,7 @@ static int mark_valid(const char *path)
60
return -1;
61
}
62
63
-static int add_file_to_cache(const char *path)
63
+static int process_file(const char *path)
64
{
65
int size, namelen, option, status;
66
struct cache_entry *ce;
@@ -210,7 +210,7 @@ static void update_one(const char *path, const char *prefix, int prefix_length)
210
report("remove '%s'", path);
211
goto free_return;
212
}
213
- if (add_file_to_cache(p))
213
+ if (process_file(p))
214
die("Unable to process file %s", path);
215
report("add '%s'", path);
216
free_return: