git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git status -q (similar to subversion)
@ 2009-06-27 20:57 Unknown
  2009-06-28 18:52 ` Jeff King
  2009-06-28 22:44 ` David Aguilar
  0 siblings, 2 replies; 11+ messages in thread
From: Unknown @ 2009-06-27 20:57 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: TEXT/PLAIN, Size: 259 bytes --]

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

[-- Attachment #2: Type: TEXT/PLAIN, Size: 471 bytes --]

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);
 

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-07-01  8:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-27 20:57 [PATCH] git status -q (similar to subversion) Unknown
2009-06-28 18:52 ` Jeff King
2009-06-28 21:01   ` Martin Renold
2009-06-30  5:33     ` Jeff King
2009-06-30 15:14       ` Martin Renold
2009-06-30 15:33         ` Jeff King
2009-07-01  8:37           ` Paolo Bonzini
2009-06-28 22:44 ` David Aguilar
2009-06-29 19:39   ` Unknown
2009-06-30  5:33     ` Jeff King
2009-06-30 16:56       ` Unknown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).