read-cache.c: mark file-local functions static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 11, 2010 at 22:29 UTC
87b29e5a5ab02f10505fca567d027b57d2a9314e
2 files changed
+4
-4
cache.h
-2
@@ -445,7 +445,6 @@ extern int index_name_pos(const struct index_state *, const char *name, int name
445
#define ADD_CACHE_JUST_APPEND 8 /* Append only; tree.c::read_tree() */
446
#define ADD_CACHE_NEW_ONLY 16 /* Do not replace existing ones */
447
extern int add_index_entry(struct index_state *, struct cache_entry *ce, int option);
448
-extern struct cache_entry *refresh_cache_entry(struct cache_entry *ce, int really);
448
extern void rename_index_entry_at(struct index_state *, int pos, const char *new_name);
449
extern int remove_index_entry_at(struct index_state *, int pos);
450
extern void remove_marked_cache_entries(struct index_state *istate);
@@ -615,7 +614,6 @@ static inline void hashclr(unsigned char *hash)
614
{
615
memset(hash, 0, 20);
616
}
618
-extern int is_empty_blob_sha1(const unsigned char *sha1);
617
618
#define EMPTY_TREE_SHA1_HEX \
619
"4b825dc642cb6eb9a060e54bf8d69288fbee4904"
read-cache.c
+4
-2
@@ -15,6 +15,8 @@
15
#include "revision.h"
16
#include "blob.h"
17
18
+static struct cache_entry *refresh_cache_entry(struct cache_entry *ce, int really);
19
+
20
/* Index extensions.
21
*
22
* The first letter should be 'A'..'Z' for extensions that are not
@@ -156,7 +158,7 @@ static int ce_modified_check_fs(struct cache_entry *ce, struct stat *st)
158
return 0;
159
}
160
159
-int is_empty_blob_sha1(const unsigned char *sha1)
161
+static int is_empty_blob_sha1(const unsigned char *sha1)
162
{
163
static const unsigned char empty_blob_sha1[20] = {
164
0xe6,0x9d,0xe2,0x9b,0xb2,0xd1,0xd6,0x43,0x4b,0x8b,
@@ -1141,7 +1143,7 @@ int refresh_index(struct index_state *istate, unsigned int flags, const char **p
1143
return has_errors;
1144
}
1145
1144
-struct cache_entry *refresh_cache_entry(struct cache_entry *ce, int really)
1146
+static struct cache_entry *refresh_cache_entry(struct cache_entry *ce, int really)
1147
{
1148
return refresh_cache_ent(&the_index, ce, really, NULL);
1149
}