diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-07-14 15:35:59 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 10:56:09 -0700 |
commit | 9a0872744315da67db3c81eb9270751e31fcc8f5 (patch) | |
tree | 92cd78dc92a8f8f482592e05f678e4a069c0fe33 /pathspec.c | |
parent | bd1928df1d1cc6a10a7b275694d3504d9a041fae (diff) | |
download | git-9a0872744315da67db3c81eb9270751e31fcc8f5.tar.gz |
remove init_pathspec() in favor of parse_pathspec()
While at there, move free_pathspec() to pathspec.c
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 'pathspec.c')
-rw-r--r-- | pathspec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pathspec.c b/pathspec.c index 2774bda476..74f0203604 100644 --- a/pathspec.c +++ b/pathspec.c @@ -372,3 +372,9 @@ void copy_pathspec(struct pathspec *dst, const struct pathspec *src) memcpy(dst->items, src->items, sizeof(struct pathspec_item) * dst->nr); } + +void free_pathspec(struct pathspec *pathspec) +{ + free(pathspec->items); + pathspec->items = NULL; +} |