summaryrefslogtreecommitdiff
path: root/builtin-update-index.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-02 05:07:26 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-05 22:07:16 (GMT)
commit81e1bc47687dc78598ad003f0d02a328a6ddae72 (patch)
tree3c7441a5112e258ff6b7a408c0fdbdaf009bc527 /builtin-update-index.c
parentec0cc704692a83c1d01b53f366b9919accdd4268 (diff)
downloadgit-81e1bc47687dc78598ad003f0d02a328a6ddae72.zip
git-81e1bc47687dc78598ad003f0d02a328a6ddae72.tar.gz
git-81e1bc47687dc78598ad003f0d02a328a6ddae72.tar.bz2
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>
Diffstat (limited to 'builtin-update-index.c')
-rw-r--r--builtin-update-index.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-update-index.c b/builtin-update-index.c
index 71cef63..d1e5cf7 100644
--- a/builtin-update-index.c
+++ b/builtin-update-index.c
@@ -60,7 +60,7 @@ static int mark_valid(const char *path)
return -1;
}
-static int add_file_to_cache(const char *path)
+static int process_file(const char *path)
{
int size, namelen, option, status;
struct cache_entry *ce;
@@ -210,7 +210,7 @@ static void update_one(const char *path, const char *prefix, int prefix_length)
report("remove '%s'", path);
goto free_return;
}
- if (add_file_to_cache(p))
+ if (process_file(p))
die("Unable to process file %s", path);
report("add '%s'", path);
free_return: