git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4] git-clean: Display more accurate delete messages

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 6, 2013, 23:40 UTC
Message-ID
<20130106234022.GB3823@elie.Belkin>
In-Reply-To
<1357514219-16102-1-git-send-email-zoltan.klinger@gmail.com>
Zoltan Klinger wrote:
Show 11 quoted lines
>   $ 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.
[...]
Show 9 quoted lines
> 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

Previous: Zoltan KlingerNext: Zoltan Klinger
Message 2 of 6 in “git-clean: Display more accurate delete messages”
  1. git-clean: Display more accurate delete messagesZoltan Klinger, Jan 6, 2013
  2. Jonathan NiederJan 6, 2013
  3. Zoltan KlingerJan 10, 2013
  4. Junio C HamanoJan 10, 2013
  5. Zoltan KlingerJan 10, 2013
  6. Junio C HamanoJan 10, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.