diff options
author | Adam Spiers <git@adamspiers.org> | 2012-12-27 02:32:29 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-28 12:07:47 -0800 |
commit | f61988125130ac091bfb69bda5d62b0ad8f054c4 (patch) | |
tree | 93e6875927a0a788ed695740b25fc3fadfb0d408 /dir.h | |
parent | a35341a86ecf354d46cf326ed9e0ffbceb54309d (diff) | |
download | git-f61988125130ac091bfb69bda5d62b0ad8f054c4.tar.gz |
dir.c: rename free_excludes() to clear_exclude_list()
It is clearer to use a 'clear_' prefix for functions which empty
and deallocate the contents of a data structure without freeing
the structure itself, and a 'free_' prefix for functions which
also free the structure itself.
http://article.gmane.org/gmane.comp.version-control.git/206128
Signed-off-by: Adam Spiers <git@adamspiers.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r-- | dir.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -135,7 +135,7 @@ extern void add_excludes_from_file(struct dir_struct *, const char *fname); extern void parse_exclude_pattern(const char **string, int *patternlen, int *flags, int *nowildcardlen); extern void add_exclude(const char *string, const char *base, int baselen, struct exclude_list *el); -extern void free_excludes(struct exclude_list *el); +extern void clear_exclude_list(struct exclude_list *el); extern int file_exists(const char *); extern int is_inside_dir(const char *dir); |