summaryrefslogtreecommitdiff
path: root/wildmatch.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-10-15 13:25:52 +0700
committerJunio C Hamano <gitster@pobox.com>2012-10-15 14:58:17 -0700
commit5230f605e1afd4e3824aae069a5f1bead6f1647f (patch)
tree0937365c43ca4719da7387d2bcbf1f6aacac9353 /wildmatch.h
parent1c149ab2ddc4a6d253e76d90067ea0fff2880ded (diff)
downloadgit-5230f605e1afd4e3824aae069a5f1bead6f1647f.tar.gz
Import wildmatch from rsync
These files are from rsync.git commit f92f5b166e3019db42bc7fe1aa2f1a9178cd215d, which was the last commit before rsync turned GPL-3. All files are imported as-is and no-op. Adaptation is done in a separate patch. rsync.git -> git.git lib/wildmatch.[ch] wildmatch.[ch] wildtest.txt t/t3070/wildtest.txt Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wildmatch.h')
-rw-r--r--wildmatch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/wildmatch.h b/wildmatch.h
new file mode 100644
index 0000000000..e7f1a35f2a
--- /dev/null
+++ b/wildmatch.h
@@ -0,0 +1,6 @@
+/* wildmatch.h */
+
+int wildmatch(const char *pattern, const char *text);
+int iwildmatch(const char *pattern, const char *text);
+int wildmatch_array(const char *pattern, const char*const *texts, int where);
+int litmatch_array(const char *string, const char*const *texts, int where);