On Tue, May 23, 2017 at 8:52 AM, Junio C Hamano wrote:
> Samuel Lijin writes:
>
>> @@ -931,6 +961,7 @@ int cmd_clean(int argc, const char **argv, const char
>> *prefix)
>> prefix, argv);
>>
>> fill_directory(&dir, &pathspec);
>> + correct_untracked_entries(&dir);
>
Samuel Lijin writes:
> @@ -931,6 +961,7 @@ int cmd_clean(int argc, const char **argv, const char
> *prefix)
> prefix, argv);
>
> fill_directory(&dir, &pathspec);
> + correct_untracked_entries(&dir);
>
> for (i = 0; i < dir.nr; i++) {
> struc
There is an implicit assumption that a directory containing only
untracked and ignored paths should itself be considered untracked. This
makes sense in use cases where we're asking if a directory should be
added to the git database, but not when we're asking if a directory can
be safely removed fro
3 matches
Mail list logo