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

Re: [PATCH] git status: print files under untracked dir if -a is given

From
Junio C Hamano <junkio@cox.net>
Date
May 30, 2006, 09:34 UTC
Message-ID
<7vfyir26v4.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<87slmrdhe6.wl@mail2.atmark-techno.com>
Yasushi SHOJI <yashi@atmark-techno.com> writes:
Show 10 quoted lines
> git status: print files under untracked dir if -a is given
>
> git status (git-commit.sh) currently doesn't show files under
> untracked directory.  this is inconvenient when adding many files
> under new directory.
>
> this patch change its behavior to show files under untracked directory
> if option --all is given.
>
> Signed-off-by: Yasushi SHOJI <yashi@atmark-techno.com>

I do not quite understand your rationale behind linking -a and "show untracked" behaviour. In many cases, after modifying multiple files "commit -a" is the preferred way to make commits for people who keep their tree clean (meaning, they do not leave unrelated changes to their working tree files), and I suspect your change would clutter their commit log buffer with unrelated files they did not ask to see.

At least this would make things somewhat unpleasant for me to use, since I do "commit -a" often and I have my random notes files under ./+trash subdirectory of the main project (yes, I know I could add /+trash to .gitignore).

We have something different but perhaps related by Matthias Lederhofer to add "git status --untracked" since you did this patch.

        commit 443f8338b9e248353a7095a1096684f1ed106c66
        Author: Matthias Lederhofer <matled@gmx.net>
        Date:   Mon May 22 23:02:06 2006 +0200
Does it solve your problem?
Previous: Yasushi SHOJINext: Yasushi SHOJI
Message 2 of 3 in “git status: print files under untracked dir if -a is given”
  1. git status: print files under untracked dir if -a is givenYasushi SHOJI, May 30, 2006
  2. Junio C HamanoMay 30, 2006
  3. Yasushi SHOJIMay 30, 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.