git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Unknown <borg@uu3.net>
To: git@vger.kernel.org
Subject: [PATCH] git status -q (similar to subversion)
Date: Sat, 27 Jun 2009 22:57:13 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0906272248570.11453@cube> (raw)

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

             reply	other threads:[~2009-06-27 21:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-27 20:57 Unknown [this message]
2009-06-28 18:52 ` [PATCH] git status -q (similar to subversion) 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0906272248570.11453@cube \
    --to=borg@uu3.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).