Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Rename internal function "add_file_to_cache" in builtin-update-index.c
author
Junio C Hamano
<junkio@cox.net>
Mon, 2 Apr 2007 05:07:26 +0000
(22:07 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 5 Apr 2007 22:07:16 +0000
(15:07 -0700)
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>
builtin-update-index.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ec0cc70
)
diff --git
a/builtin-update-index.c
b/builtin-update-index.c
index 71cef633c0e36b3a33fa29eccb8579a9304b0777..d1e5cf753963b0cadc8f9ba55179a991cf759dae 100644
(file)
--- a/
builtin-update-index.c
+++ b/
builtin-update-index.c
@@
-60,7
+60,7
@@
static int mark_valid(const char *path)
return -1;
}
return -1;
}
-static int
add_file_to_cach
e(const char *path)
+static int
process_fil
e(const char *path)
{
int size, namelen, option, status;
struct cache_entry *ce;
{
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;
}
report("remove '%s'", path);
goto free_return;
}
- if (
add_file_to_cach
e(p))
+ if (
process_fil
e(p))
die("Unable to process file %s", path);
report("add '%s'", path);
free_return:
die("Unable to process file %s", path);
report("add '%s'", path);
free_return: