Thread (11 messages) flat view 11 messages, 5 authors, 2016-06-15

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

From: David Aguilar <hidden>
Date: 2016-06-15 22:47:00

On Sat, Jun 27, 2009 at 10:57:13PM +0200, Unknown wrote:
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

Hello

Please take a look at Documentation/SubmittingPatches
(all of the documentation lives in Documentation/).

It doesn't seem like this patch was generated with
git format-patch.  You'll also want to submit your patch using
git send-email, as we require inline patches instead of
attachments.

You'll need to include a signed-off-by line (which you can do
by using `git commit -s`) and it seems like you need to
introduce yourself to git:

http://book.git-scm.com/2_setup_and_initialization.html

Sorry, we cannot accept patches from "Unknown" for a number
of reasons.


Thanks for your help and we look forward to hearing your
response to the rest of the feedback received in this thread.

quoted hunk ↗ jump to hunk
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);
 

-- 

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help