Code

git push: say that --tag can't be used with --all or --mirror in help text
authorNanako Shiraishi <nanako3@lavabit.com>
Mon, 19 Oct 2009 03:57:01 +0000 (12:57 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Oct 2009 05:47:48 +0000 (22:47 -0700)
This replaces an earlier patch by Björn Gustavsson,

  Message-ID: <4AD75029.1010109@gmail.com>

Signed-off-by: しらいし ななこ <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-push.c

index ab49b7c7656139e36bb49a2ff4ae144cb094e57c..b5cd2cdad04548f053d0a9ff24e661d4c3ee1d39 100644 (file)
@@ -181,7 +181,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
                OPT_BIT( 0 , "all", &flags, "push all refs", TRANSPORT_PUSH_ALL),
                OPT_BIT( 0 , "mirror", &flags, "mirror all refs",
                            (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE)),
-               OPT_BOOLEAN( 0 , "tags", &tags, "push tags"),
+               OPT_BOOLEAN( 0 , "tags", &tags, "push tags (can't be used with --all or --mirror"),
                OPT_BIT('n' , "dry-run", &flags, "dry run", TRANSPORT_PUSH_DRY_RUN),
                OPT_BIT( 0,  "porcelain", &flags, "machine-readable output", TRANSPORT_PUSH_PORCELAIN),
                OPT_BIT('f', "force", &flags, "force updates", TRANSPORT_PUSH_FORCE),