Skip to content

Commit

Permalink
Update the usage bundle string.
Browse files Browse the repository at this point in the history
"git bundle -h" gives a single long line that is hard to read.  Rewrite it
into a multi-line format similar to the one used by other commands, e.g
"git stash -h".

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
tfarina authored and gitster committed Sep 19, 2009
1 parent e481b1d commit 1f986c4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions builtin-bundle.c
Expand Up @@ -9,7 +9,11 @@
* bundle supporting "fetch", "pull", and "ls-remote".
*/

static const char *bundle_usage="git bundle (create <bundle> <git rev-list args> | verify <bundle> | list-heads <bundle> [refname]... | unbundle <bundle> [refname]... )";
static const char builtin_bundle_usage[] =
"git bundle create <file> <git-rev-list args>\n"
" or: git bundle verify <file>\n"
" or: git bundle list-heads <file> [refname...]\n"
" or: git bundle unbundle <file> [refname...]";

int cmd_bundle(int argc, const char **argv, const char *prefix)
{
Expand All @@ -20,7 +24,7 @@ int cmd_bundle(int argc, const char **argv, const char *prefix)
char buffer[PATH_MAX];

if (argc < 3)
usage(bundle_usage);
usage(builtin_bundle_usage);

cmd = argv[1];
bundle_file = argv[2];
Expand Down Expand Up @@ -59,5 +63,5 @@ int cmd_bundle(int argc, const char **argv, const char *prefix)
return !!unbundle(&header, bundle_fd) ||
list_bundle_refs(&header, argc, argv);
} else
usage(bundle_usage);
usage(builtin_bundle_usage);
}

0 comments on commit 1f986c4

Please sign in to comment.