summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2013-04-11 12:05:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-11 18:01:58 (GMT)
commit0006d85c3a2fcbd803ed46cf283fab4e4fae3a7f (patch)
tree2defa4151a8aa9df407dd0f79dfece06bf02aaa0 /date.c
parentae3caf4c912429c8e9755f2e10d2f0a7f6279c36 (diff)
downloadgit-0006d85c3a2fcbd803ed46cf283fab4e4fae3a7f.zip
git-0006d85c3a2fcbd803ed46cf283fab4e4fae3a7f.tar.gz
git-0006d85c3a2fcbd803ed46cf283fab4e4fae3a7f.tar.bz2
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 'date.c')
0 files changed, 0 insertions, 0 deletions