diff options
author | Adam Spiers <git@adamspiers.org> | 2013-04-11 13:05:11 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-11 11:01:58 -0700 |
commit | 0006d85c3a2fcbd803ed46cf283fab4e4fae3a7f (patch) | |
tree | 2defa4151a8aa9df407dd0f79dfece06bf02aaa0 /t/t5100/msg0015--no-inbody-headers | |
parent | check-ignore: add -n / --non-matching option (diff) | |
download | tgif-0006d85c3a2fcbd803ed46cf283fab4e4fae3a7f.tar.xz |
check-ignore: move setup into cmd_check_ignore()
Initialisation of the dir_struct and path_exclude_check structs was
previously done within check_ignore(). This was acceptable since
check_ignore() was only called once per check-ignore invocation;
however the next commit will convert it into an inner loop which is
called once per line of STDIN when --stdin is given. Therefore moving
the initialisation code out into cmd_check_ignore() ensures that
initialisation is still only performed once per check-ignore
invocation, and consequently that the output is identical whether
pathspecs are provided as CLI arguments or via STDIN.
Signed-off-by: Adam Spiers <git@adamspiers.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100/msg0015--no-inbody-headers')
0 files changed, 0 insertions, 0 deletions