Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
dir.c: make excluded() file scope static
author
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Jun 2012 05:26:12 +0000
(22:26 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Jun 2012 05:26:12 +0000
(22:26 -0700)
Now there no longer is external callers of this interface, so we can
make it static.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
patch
|
blob
|
history
dir.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
589570d
)
diff --git
a/dir.c
b/dir.c
index 7ab7fc5c22cefba11cb013bdd5ca5cea2f284c2c..79e43377ad6a1abcfa21e740522d15e4a0b3c566 100644
(file)
--- a/
dir.c
+++ b/
dir.c
@@
-560,7
+560,7
@@
int excluded_from_list(const char *pathname,
return -1; /* undecided */
}
return -1; /* undecided */
}
-int excluded(struct dir_struct *dir, const char *pathname, int *dtype_p)
+
static
int excluded(struct dir_struct *dir, const char *pathname, int *dtype_p)
{
int pathlen = strlen(pathname);
int st;
{
int pathlen = strlen(pathname);
int st;
diff --git
a/dir.h
b/dir.h
index 36a82b3bd1d6202b3e006dac39e42ed925d79d54..1a88a7564da94af478d859c099664e61a3a9ca74 100644
(file)
--- a/
dir.h
+++ b/
dir.h
@@
-78,7
+78,6
@@
extern int read_directory(struct dir_struct *, const char *path, int len, const
extern int excluded_from_list(const char *pathname, int pathlen, const char *basename,
int *dtype, struct exclude_list *el);
extern int excluded_from_list(const char *pathname, int pathlen, const char *basename,
int *dtype, struct exclude_list *el);
-extern int excluded(struct dir_struct *, const char *, int *);
struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len);
/*
struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len);
/*