Skip to content

Commit 81e1bc4

Browse files
author
Junio C Hamano
committed
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 <[email protected]>
1 parent ec0cc70 commit 81e1bc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin-update-index.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static int mark_valid(const char *path)
6060
return -1;
6161
}
6262

63-
static int add_file_to_cache(const char *path)
63+
static int process_file(const char *path)
6464
{
6565
int size, namelen, option, status;
6666
struct cache_entry *ce;
@@ -210,7 +210,7 @@ static void update_one(const char *path, const char *prefix, int prefix_length)
210210
report("remove '%s'", path);
211211
goto free_return;
212212
}
213-
if (add_file_to_cache(p))
213+
if (process_file(p))
214214
die("Unable to process file %s", path);
215215
report("add '%s'", path);
216216
free_return:

0 commit comments

Comments
 (0)