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

Re: [PATCH] git status: ignore empty directories (because they cannot be added)

From
Junio C Hamano <junkio@cox.net>
Date
May 23, 2006, 01:11 UTC
Message-ID
<7vu07h8rzr.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<E1FiHXS-0008MC-LB@moooo.ath.cx>
Matthias Lederhofer <matled@gmx.net> writes:
Show 6 quoted lines
> and a new option -u / --untracked-files to show files in untracked
> directories.
>
> ---
> A few things I'm not sure about:
> - Should there be another option to disable --no-empty-directory?

I am not sure about this. We used to show everything in a directory full of untracked directory, which was distracting and that was the reason we added --directory there. Maybe it would be less confusing if we just updated the message

	    print "#\n# Untracked files:\n";
	    print "#   (use \"git add\" to add to commit)\n";
	    print "#\n";

to say "use 'git add' on these files and files in these directories you wish to add", or something silly like that, without this patch?

Previous: Matthias LederhoferNext: Matthias Lederhofer
Message 2 of 4 in “git status: ignore empty directories (because they cannot be added)”
  1. git status: ignore empty directories (because they cannot be added)Matthias Lederhofer, May 22, 2006
  2. Junio C HamanoMay 23, 2006
  3. Matthias LederhoferMay 23, 2006
  4. Matthias LederhoferMay 23, 2006

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.