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

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

From
Zoltan Klinger <zoltan.klinger@gmail.com>
Date
Jan 10, 2013, 10:41 UTC
Message-ID
<CAKJhZwQ=RzLgCBUrx_QKY8Xzh-L8QC2UVcQJEpYxxGQz=8LwwQ@mail.gmail.com>
In-Reply-To
<7vk3rl3fw5.fsf@alter.siamese.dyndns.org>
Show 7 quoted lines
> I think the code before this patch used to say "Would not remove"
> and "Not removing" in certain cases to report the paths that the
> command decided not to remove, but after this patch these two
> messages no longer appear in the patch.
>
> Is it expected, are we losing information, or...?
>
I do not think we are losing any information.
Say, we have a repo like this:
    test.git
     |-- untracked_file
     |-- untracked_bar
     |     |-- bar.txt
     |-- untracked_foo
           |-- foo.txt
The original version prints out:
  $ git clean -fn
  Would remove untracked_file
  Would not remove untracked_bar/
  Would not remove untracked_foo/

We never asked for any directories to be removed so IMHO the "Would not remove ..." messages are just noise.

The new version prints out:
  $ git clean -fn
  Would remove untracked_file
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 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.