summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-06-22 21:15:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-22 21:15:21 (GMT)
commit52ab95cfea15ae8a60fb4febc99d54034c8800b8 (patch)
treeba06be7965dcd1ed226dab1cbb3cf70818bb187d /dir.h
parent46f32fb92c72a877d87af6435f1b4d653a860e2e (diff)
parente0556a928fdba489307d13d8d4c4d2a461fbc3ad (diff)
downloadgit-52ab95cfea15ae8a60fb4febc99d54034c8800b8.zip
git-52ab95cfea15ae8a60fb4febc99d54034c8800b8.tar.gz
git-52ab95cfea15ae8a60fb4febc99d54034c8800b8.tar.bz2
Merge branch 'pc/dir-count-slashes'
Three instances of the same helper function have been consolidated to one. * pc/dir-count-slashes: dir: create function count_slashes()
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dir.h b/dir.h
index a89c13e..e371705 100644
--- a/dir.h
+++ b/dir.h
@@ -197,6 +197,9 @@ struct dir_struct {
unsigned unmanaged_exclude_files;
};
+/*Count the number of slashes for string s*/
+extern int count_slashes(const char *s);
+
/*
* The ordering of these constants is significant, with
* higher-numbered match types signifying "closer" (i.e. more