]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/ls-files.c
clean.c, ls-files.c: respect encapsulation of exclude_list_groups
authorAdam Spiers <git@adamspiers.org>
Wed, 16 Jan 2013 13:25:58 +0000 (13:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jan 2013 17:43:35 +0000 (09:43 -0800)
commit72aeb18772deeb386da7dd8997b969877bd29e41
tree519f4e6cffd2fbfe1669b2ee203772764e18602d
parent6f53feac95f35d470789348c051f6cee93449642
clean.c, ls-files.c: respect encapsulation of exclude_list_groups

Consumers of the dir.c traversal API should avoid assuming knowledge
of the internal implementation of exclude_list_groups.  Therefore
when adding items to an exclude list, it should be accessed via the
pointer returned from add_exclude_list(), rather than by referencing
a location within dir.exclude_list_groups[EXC_CMDL].

Signed-off-by: Adam Spiers <git@adamspiers.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clean.c
builtin/ls-files.c