summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83e41e2)
raw | patch | inline | side by side (parent: 83e41e2)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Jan 2010 06:27:31 +0000 (22:27 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Jan 2010 09:06:08 +0000 (01:06 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | patch | blob | history | |
entry.c | patch | blob | history |
index 3f9ee861477883a5a9f27aea768a8c070559a891..30b9048dfe052f898bf7af91b40a3fd7206c7acb 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -473,9 +473,6 @@ extern int index_fd(unsigned char *sha1, int fd, struct stat *st, int write_obje
extern int index_path(unsigned char *sha1, const char *path, struct stat *st, int write_object);
extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st);
-/* "careful lstat()" */
-extern int check_path(const char *path, int len, struct stat *st, int skiplen);
-
#define REFRESH_REALLY 0x0001 /* ignore_valid */
#define REFRESH_UNMERGED 0x0002 /* allow unmerged */
#define REFRESH_QUIET 0x0004 /* be quiet about it */
index 06d24f14c6ba9401637aebfb11659ae747796c06..55b988e22b0381a0d4a43f2367248f4c60b0f51c 100644 (file)
--- a/entry.c
+++ b/entry.c
@@ -179,7 +179,7 @@ static int write_entry(struct cache_entry *ce, char *path, const struct checkout
* This is like 'lstat()', except it refuses to follow symlinks
* in the path, after skipping "skiplen".
*/
-int check_path(const char *path, int len, struct stat *st, int skiplen)
+static int check_path(const char *path, int len, struct stat *st, int skiplen)
{
const char *slash = path + len;