From: Jonathan Nieder Date: Sun, 06 Jan 2013 23:40:22 GMT Subject: Re: [PATCH v4] git-clean: Display more accurate delete messages Message-ID: <20130106234022.GB3823@elie.Belkin> In-Reply-To: <1357514219-16102-1-git-send-email-zoltan.klinger@gmail.com> Zoltan Klinger wrote: > $ git clean -fd > Removing tracked_dir/some_untracked_file > Removing untracked_file > Removing untracked_foo/ > Removing untracked_some.git/ > > The message displayed to the user is slightly misleading. The foo/ > directory has not been removed because of foo/frotz.git still exists. > On the other hand the subdirectories 'bar' and 'emptydir' have been > deleted but they're not mentioned anywhere. Also, untracked_some.git > has not been removed either. [...] > Consider the output of the improved version: > > $ git clean -fd > Removing tracked_dir/some_untracked_file > Removing untracked_file > warning: ignoring untracked git repository untracked_foo/frotz.git > Removing untracked_foo/bar > Removing untracked_foo/emptydir > warning: ignoring untracked git repository untracked_some.git/ Thanks, this looks like a nice improvement. I wonder whether it's possible to make the output more consistent, as in: Removing tracked_dir/some_untracked_file Removing untracked_file Skipping repository untracked_foo/frotz.git Removing untracked_foo/bar Removing untracked_foo/emptydir Skipping repository untracked_some.git or similar. What do you think? Thanks, Jonathan