dir: consolidate similar code in treat_directory()
commitc847dfafeee8b0fe3e053ac307de88e04d1ad072
authorElijah Newren <newren@gmail.com>
Thu, 19 Dec 2019 21:28:26 +0000 (19 21:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Dec 2019 21:45:47 +0000 (19 13:45 -0800)
tree0e87a5f3e0b804c7f3c2aa9bbdeb4af485570bea
parent777b420347649f26022bb1a4bf7afe7c4fe0b090
dir: consolidate similar code in treat_directory()

Both the DIR_SKIP_NESTED_GIT and DIR_NO_GITLINKS cases were checking for
whether a path was actually a nonbare repository.  That code could be
shared, with just the result of how to act differing between the two
cases.

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