X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=pathspec.h;h=59809e4793a20e3030462ec23bff2b5358283282;hb=bdf56de896b48d6fe3ad90e92138b5fd6579748d;hp=08f5876f0204740ce11d33d8af79ed148c266853;hpb=e78d57ec8e330ab59058f932c0ba211014f4f6be;p=git-core%2Fgit.git diff --git a/pathspec.h b/pathspec.h index 08f5876f0..59809e479 100644 --- a/pathspec.h +++ b/pathspec.h @@ -19,7 +19,7 @@ #define PATHSPEC_ONESTAR 1 /* the pathspec pattern satisfies GFNM_ONESTAR */ struct pathspec { - const char **_raw; /* get_pathspec() result, not freed by free_pathspec() */ + const char **_raw; /* get_pathspec() result, not freed by clear_pathspec() */ int nr; unsigned int has_wildcard:1; unsigned int recursive:1; @@ -74,7 +74,7 @@ extern void parse_pathspec(struct pathspec *pathspec, const char *prefix, const char **args); extern void copy_pathspec(struct pathspec *dst, const struct pathspec *src); -extern void free_pathspec(struct pathspec *); +extern void clear_pathspec(struct pathspec *); static inline int ps_strncmp(const struct pathspec_item *item, const char *s1, const char *s2, size_t n)