]> git.ipfire.org Git - thirdparty/git.git/commit
clean: consolidate handling of ignored parameters
authorElijah Newren <newren@gmail.com>
Thu, 11 Jun 2020 06:59:32 +0000 (06:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 13 Jun 2020 00:27:16 +0000 (17:27 -0700)
commitf7f5c6c0baf6b6219b38e69d8623b95cc3cdd3d3
tree046afadd7e64fc5aca61da613956ca4b964250ac
parent351ea1c3cbf416b40cb999ea7426da633fa64918
clean: consolidate handling of ignored parameters

I spent a long time trying to figure out how and whether the code worked
with different values of ignore, ignore_only, and remove_directories.
After lots of time setting up lots of testcases, sifting through lots of
print statements, and walking through the debugger, I finally realized
that one piece of code related to how it was all setup was found in
clean.c rather than dir.c.  Make a change that would have made it easier
for me to do the extra testing by putting this handling in one spot.

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