diff options
author | Clemens Buchacher <drizzd@aon.at> | 2009-01-14 15:54:35 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-14 19:18:44 -0800 |
commit | 0b50922abffb82c473182b03eb5bb47a978cceac (patch) | |
tree | 25dac912a5f695b9117162cc59087e68e915bbfc /cache.h | |
parent | 1c7c1d179e51f163c014353f33b406f5bae13922 (diff) | |
download | git-0b50922abffb82c473182b03eb5bb47a978cceac.tar.gz |
remove pathspec_match, use match_pathspec instead
Both versions have the same functionality. This removes any
redundancy.
This also adds makes two extensions to match_pathspec:
- If pathspec is NULL, return 1. This reflects the behavior of git
commands, for which no paths usually means "match all paths".
- If seen is NULL, do not use it.
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -936,7 +936,6 @@ extern int ws_fix_copy(char *, const char *, int, unsigned, int *); extern int ws_blank_line(const char *line, int len, unsigned ws_rule); /* ls-files */ -int pathspec_match(const char **spec, char *matched, const char *filename, int skiplen); int report_path_error(const char *ps_matched, const char **pathspec, int prefix_offset); void overlay_tree_on_cache(const char *tree_name, const char *prefix); |