Thread (22 messages) flat view 22 messages, 4 authors, 2016-06-15
DORMANTno replies

[PATCH 08/10] push: teach push to accept --verbose option

From: Steffen Prohaska <hidden>
Date: 2016-06-15 22:43:45
Subsystem: documentation, the rest · Maintainers: Jonathan Corbet, Linus Torvalds

Before this commit, git push only knew '-v'.

Signed-off-by: Steffen Prohaska <redacted>
---
 Documentation/git-push.txt |    4 ++--
 builtin-push.c             |    4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
index 236898f..865f183 100644
--- a/Documentation/git-push.txt
+++ b/Documentation/git-push.txt
@@ -10,7 +10,7 @@ SYNOPSIS
 --------
 [verse]
 'git-push' [--all] [--dry-run] [--create] [--tags] [--receive-pack=<git-receive-pack>]
-           [--repo=all] [-f | --force] [-v] [HEAD | <repository> <refspec>...]
+           [--repo=all] [-f | --force] [-v | --verbose] [HEAD | <repository> <refspec>...]
 
 DESCRIPTION
 -----------
@@ -105,7 +105,7 @@ the remote repository.
 	transfer spends extra cycles to minimize the number of
 	objects to be sent and meant to be used on slower connection.
 
--v::
+-v, \--verbose::
 	Run verbosely.
 
 include::urls-remotes.txt[]
diff --git a/builtin-push.c b/builtin-push.c
index 7c08e19..9103d57 100644
--- a/builtin-push.c
+++ b/builtin-push.c
@@ -112,6 +112,10 @@ int cmd_push(int argc, const char **argv, const char *prefix)
 			verbose=1;
 			continue;
 		}
+		if (!strcmp(arg, "--verbose")) {
+			verbose=1;
+			continue;
+		}
 		if (!prefixcmp(arg, "--repo=")) {
 			repo = arg+7;
 			continue;
-- 
1.5.3.4.439.ge8b49
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help