Skip to content

Commit

Permalink
Rename internal function "add_file_to_cache" in builtin-update-index.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Apr 5, 2007
1 parent ec0cc70 commit 81e1bc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin-update-index.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 81e1bc4

Please sign in to comment.