summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-10 22:56:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-10-10 22:56:17 (GMT)
commitca3ef81ad78dcbaecd2bf03e22a5bb9d1fa5eff4 (patch)
tree95b3ad81be30f2d56be61e1a68c06ea6a450f93d /dir.h
parent9488c18923f40573b692dbb8ea9c85c3cb4550a7 (diff)
parentf950eb956092831730182daa7160eaa352277fa9 (diff)
downloadgit-ca3ef81ad78dcbaecd2bf03e22a5bb9d1fa5eff4.zip
git-ca3ef81ad78dcbaecd2bf03e22a5bb9d1fa5eff4.tar.gz
git-ca3ef81ad78dcbaecd2bf03e22a5bb9d1fa5eff4.tar.bz2
Merge branch 'cb/common-prefix-unification'
* cb/common-prefix-unification: rename pathspec_prefix() to common_prefix() and move to dir.[ch] consolidate pathspec_prefix and common_prefix remove prefix argument from pathspec_prefix
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dir.h b/dir.h
index 433b5b4..dd6947e 100644
--- a/dir.h
+++ b/dir.h
@@ -64,6 +64,7 @@ struct dir_struct {
#define MATCHED_RECURSIVELY 1
#define MATCHED_FNMATCH 2
#define MATCHED_EXACTLY 3
+extern char *common_prefix(const char **pathspec);
extern int match_pathspec(const char **pathspec, const char *name, int namelen, int prefix, char *seen);
extern int match_pathspec_depth(const struct pathspec *pathspec,
const char *name, int namelen,