summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2012-12-27 02:32:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-12-28 20:07:45 (GMT)
commit9013089c4a841bf17bcc8e2510a86ceecac29ffd (patch)
tree35d4cebe8af5fa6638ad929ea02df48b4248895a /dir.c
parent840fc334e98e89e28039f85c3eff0caab5f20eb3 (diff)
downloadgit-9013089c4a841bf17bcc8e2510a86ceecac29ffd.zip
git-9013089c4a841bf17bcc8e2510a86ceecac29ffd.tar.gz
git-9013089c4a841bf17bcc8e2510a86ceecac29ffd.tar.bz2
dir.c: rename path_excluded() to is_path_excluded()
Start adopting clearer names for exclude functions. This 'is_*' naming pattern for functions returning booleans was agreed here: http://thread.gmane.org/gmane.comp.version-control.git/204661/focus=204924 Signed-off-by: Adam Spiers <git@adamspiers.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index f31aa59..f1c0abd 100644
--- a/dir.c
+++ b/dir.c
@@ -685,8 +685,8 @@ void path_exclude_check_clear(struct path_exclude_check *check)
* A path to a directory known to be excluded is left in check->path to
* optimize for repeated checks for files in the same excluded directory.
*/
-int path_excluded(struct path_exclude_check *check,
- const char *name, int namelen, int *dtype)
+int is_path_excluded(struct path_exclude_check *check,
+ const char *name, int namelen, int *dtype)
{
int i;
struct strbuf *path = &check->path;