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

[PATCH] git push: remove incomplete options list from help text

From
Nanako Shiraishi <nanako3@lavabit.com>
Date
Oct 19, 2009, 02:54 UTC
Message-ID
<20091019115412.6117@nanako3.lavabit.com>
In-Reply-To
<20091018235240.GU6115@genesis.frugalware.org>

'git push -h' shows usage text with incomplete list of options and then has a separate list of options that are supported. Imitate the way other commands (I looked at 'git diff' for an example) show their options.

Signed-off-by: しらいし ななこ <nanako3@lavabit.com>
---
Quoting Miklos Vajna <vmiklos@frugalware.org>
Show 8 quoted lines
> Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
> ---
>
> On Sun, Oct 18, 2009 at 07:05:44PM +0200, Sebastian Pipping <webmaster@hartwork.org> wrote:
>> If I'm not mistaken --quiet is not documented in the git-push man page.
>> This includes release 1.6.5.1.
>
> Here is a patch to document it.

% git push -h usage: git push [--all | --mirror] [-n | --dry-run] [--porcelain] [--tags] [--receive-pack=<git-receive-pack>] [--repo=<repository>] [-f | --force] [-v] [<repository> <refspec>...]

    -q, --quiet           be quiet
    -v, --verbose         be verbose
    --repo <repository>   repository
    --all                 push all refs
    --mirror              mirror all refs
    --tags                push tags
    -n, --dry-run         dry run
    --porcelain           machine-readable output
    -f, --force           force updates
    --thin                use thin pack
    --receive-pack <receive-pack>
                          receive pack program
    --exec <receive-pack>
                          receive pack program
 builtin-push.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-push.c b/builtin-push.c
index 3cb1ee4..6686b79 100644
--- a/builtin-push.c
+++ b/builtin-push.c
@@ -10,7 +10,7 @@
 #include "parse-options.h"
 
 static const char * const push_usage[] = {
-	"git push [--all | --mirror] [-n | --dry-run] [--porcelain] [--tags] [--receive-pack=<git-receive-pack>] [--repo=<repository>] [-f | --force] [-v] [<repository> <refspec>...]",
+	"git push <options> [<repository> <refspec>...]",
 	NULL,
 };
 
-- 
1.6.5.rc1.18.g53a9a




-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Previous: Miklos VajnaNext: Junio C Hamano
Message 9 of 18 in “[ANNOUNCE] GIT 1.6.5”
  1. Junio C HamanoOct 11, 2009
  2. Steven NoonanOct 11, 2009
  3. Steven NoonanOct 11, 2009
  4. Junio C HamanoOct 11, 2009
  5. Steven NoonanOct 11, 2009
  6. Jakub NarebskiOct 14, 2009
  7. Sebastian PippingOct 18, 2009
  8. Document git push -qMiklos Vajna, Oct 18, 2009
  9. git push: remove incomplete options list from help textNanako Shiraishi, Oct 19, 2009
  10. Junio C HamanoOct 19, 2009
  11. git push: say that --tag can't be used with --all or --mirror in help textNanako Shiraishi, Oct 19, 2009
  12. Jeff KingOct 19, 2009
  13. Jeff KingOct 21, 2009
  14. Nanako ShiraishiOct 21, 2009
  15. Jeff KingOct 19, 2009
  16. Junio C HamanoOct 19, 2009
  17. Jeff KingOct 19, 2009
  18. Junio C HamanoOct 19, 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.