]> git.ipfire.org Git - thirdparty/git.git/commit
dir: include DIR_KEEP_UNTRACKED_CONTENTS handling in treat_directory()
authorElijah Newren <newren@gmail.com>
Wed, 1 Apr 2020 04:17:43 +0000 (04:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Apr 2020 18:11:31 +0000 (11:11 -0700)
commit1684644489fbd76d01fe3bb53c65df6856fd00c5
treed3a395b1fa6b4e07c827fb0d88b0fa21e45618b7
parent8d92fb292706fd8d13cfe55353b2ec9345153a3e
dir: include DIR_KEEP_UNTRACKED_CONTENTS handling in treat_directory()

Handling DIR_KEEP_UNTRACKED_CONTENTS within treat_directory() instead of
as a post-processing step in read_directory():
  * allows us to directly access and remove the relevant entries instead
    of needing to calculate which ones need to be removed
  * keeps the logic for directory handling in one location (and puts it
    closer the the logic for stripping out extra ignored entries, which
    seems logical).

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c