diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-10-15 13:25:52 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-10-15 14:58:17 -0700 |
commit | 5230f605e1afd4e3824aae069a5f1bead6f1647f (patch) | |
tree | 0937365c43ca4719da7387d2bcbf1f6aacac9353 /wildmatch.h | |
parent | 1c149ab2ddc4a6d253e76d90067ea0fff2880ded (diff) | |
download | git-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.h | 6 |
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); |