]> git.ipfire.org Git - thirdparty/git.git/commit - environment.c
test-dump-untracked-cache: don't modify the untracked cache
authorChristian Couder <christian.couder@gmail.com>
Wed, 27 Jan 2016 06:58:06 +0000 (07:58 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jan 2016 20:30:07 +0000 (12:30 -0800)
commitdae6c322fa106d72dabd7551f388715e6a9f2ebf
treebcd583c221fbbd0c62dc5a66b1a7a46a35f915ed
parent435ec090ec6aed9c533e096b31947b3fa765548e
test-dump-untracked-cache: don't modify the untracked cache

To correctly perform its testing function,
test-dump-untracked-cache should not change the state of the
untracked cache in the index.

As a previous patch makes read_index_from() change the state of
the untracked cache and as test-dump-untracked-cache indirectly
calls this function, we need a mechanism to prevent
read_index_from() from changing the untracked cache state when
it's called from test-dump-untracked-cache.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
config.c
environment.c
test-dump-untracked-cache.c