Merge branch 'ms/remote-usage-string'
authorJunio C Hamano <gitster@pobox.com>
Mon, 23 Apr 2012 19:39:17 +0000 (12:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Apr 2012 19:39:18 +0000 (12:39 -0700)
Adds some subcommands that were not listed in "git remote --help"
usage strings.

As an independent follow-up, we may want to rethink how the overall
usage string and subcommand usage strings are maintained.

By Michael Schubert
* ms/remote-usage-string:
remote: update builtin usage

1  2 
builtin/remote.c
diff --combined builtin/remote.c
index fec92bc66e41b82f929e37b1935d00d6558c34a0,8904d4b8e0c6f2c6b3c205543bf7f870276bda22..b5645fe0ae89fc969c41aceb32e918fb0fa0d39f
@@@ -9,7 -9,7 +9,7 @@@
  
  static const char * const builtin_remote_usage[] = {
        "git remote [-v | --verbose]",
-       "git remote add [-t <branch>] [-m <master>] [-f] [--mirror=<fetch|push>] <name> <url>",
+       "git remote add [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror=<fetch|push>] <name> <url>",
        "git remote rename <old> <new>",
        "git remote rm <name>",
        "git remote set-head <name> (-a | -d | <branch>)",
@@@ -17,7 -17,7 +17,7 @@@
        "git remote prune [-n | --dry-run] <name>",
        "git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]",
        "git remote set-branches [--add] <name> <branch>...",
-       "git remote set-url <name> <newurl> [<oldurl>]",
+       "git remote set-url [--push] <name> <newurl> [<oldurl>]",
        "git remote set-url --add <name> <newurl>",
        "git remote set-url --delete <name> <url>",
        NULL
@@@ -534,7 -534,7 +534,7 @@@ static int add_branch_for_removal(cons
        }
  
        /* don't delete non-remote-tracking refs */
 -      if (prefixcmp(refname, "refs/remotes")) {
 +      if (prefixcmp(refname, "refs/remotes/")) {
                /* advise user how to delete local branches */
                if (!prefixcmp(refname, "refs/heads/"))
                        string_list_append(branches->skipped,