From: Samuel Lijin Date: Thu, 25 May 2017 15:36:35 GMT Subject: Re: [PATCH v6 6/6] clean: teach clean -d to preserve ignored paths Message-ID: In-Reply-To: <517a9182-0366-d51a-b7e5-f9085df5b4f9@web.de> On Wed, May 24, 2017 at 12:14 AM, Torsten Bögershausen wrote: > >> diff --git a/builtin/clean.c b/builtin/clean.c >> index d861f836a..937eb17b6 100644 >> --- a/builtin/clean.c >> +++ b/builtin/clean.c >> @@ -857,6 +857,38 @@ static void interactive_main_loop(void) >> } >> } >> +static void correct_untracked_entries(struct dir_struct *dir) > > Looking what the function does, would > drop_or_keep_untracked_entries() > make more sense ? To me, drop_or_keep_ implies that they're either all dropped or all kept, nothing in between, which is why I went with correct_, to indicate that the set of untracked entries in the dir_struct prior to calling the method needs to be corrected.