diff options
| author | Junio C Hamano <gitster@pobox.com> | 2011-10-10 15:56:17 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2011-10-10 15:56:17 -0700 |
| commit | ca3ef81ad78dcbaecd2bf03e22a5bb9d1fa5eff4 (patch) | |
| tree | 95b3ad81be30f2d56be61e1a68c06ea6a450f93d /dir.h | |
| parent | 9488c18923f40573b692dbb8ea9c85c3cb4550a7 (diff) | |
| parent | f950eb956092831730182daa7160eaa352277fa9 (diff) | |
| download | git-ca3ef81ad78dcbaecd2bf03e22a5bb9d1fa5eff4.tar.xz | |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |
