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

[PATCH] git status -q (similar to subversion)

From
UUnknown <borg@uu3.net>
Date
Jun 27, 2009, 20:57 UTC
Message-ID
<Pine.LNX.4.64.0906272248570.11453@cube>

Here is a tiny patch adding -q option to git status. It means -uno (Show no untracked files).

Not sure where to add that in documentation. Maybe in git-commit man just below -u: -q (for git-status only, equals to -uno). Or something like this?

Regards, Borg

diff --git a/builtin-commit.c b/builtin-commit.c
index 41e222d..e4e0074 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -826,6 +826,8 @@ int cmd_status(int argc, const char **argv, const char *prefix)
 		diff_use_color_default = git_use_color_default;
 
 	argc = parse_and_validate_options(argc, argv, builtin_status_usage, prefix);
+	if(quiet)
+		show_untracked_files = SHOW_NO_UNTRACKED_FILES;
 
 	index_file = prepare_index(argc, argv, prefix);
 
Next: Jeff King
Message 1 of 11 in “git status -q (similar to subversion)”
  1. git status -q (similar to subversion)Unknown, Jun 27, 2009
  2. Jeff KingJun 28, 2009
  3. Martin RenoldJun 28, 2009
  4. Jeff KingJun 30, 2009
  5. Martin RenoldJun 30, 2009
  6. Jeff KingJun 30, 2009
  7. Paolo BonziniJul 1, 2009
  8. David AguilarJun 28, 2009
  9. UnknownJun 29, 2009
  10. Jeff KingJun 30, 2009
  11. UnknownJun 30, 2009

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.