summaryrefslogtreecommitdiff
path: root/diffcore-delta.c
diff options
context:
space:
mode:
authorLibravatar Adam Spiers <git@adamspiers.org>2013-04-11 13:05:11 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-11 11:01:58 -0700
commit0006d85c3a2fcbd803ed46cf283fab4e4fae3a7f (patch)
tree2defa4151a8aa9df407dd0f79dfece06bf02aaa0 /diffcore-delta.c
parentcheck-ignore: add -n / --non-matching option (diff)
downloadtgif-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 'diffcore-delta.c')
0 files changed, 0 insertions, 0 deletions