From: Thiago Farina Date: Thu, 17 Sep 2009 17:20:53 +0000 (-0400) Subject: Update the usage bundle string. X-Git-Tag: v1.6.5-rc2~27 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1f986c4ac4df6fcac4b19bc9cd3a8b6c8f0ffdea;p=git.git Update the usage bundle string. "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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-bundle.c b/builtin-bundle.c index 9b5815204..2006cc5cd 100644 --- a/builtin-bundle.c +++ b/builtin-bundle.c @@ -9,7 +9,11 @@ * bundle supporting "fetch", "pull", and "ls-remote". */ -static const char *bundle_usage="git bundle (create | verify | list-heads [refname]... | unbundle [refname]... )"; +static const char builtin_bundle_usage[] = + "git bundle create \n" + " or: git bundle verify \n" + " or: git bundle list-heads [refname...]\n" + " or: git bundle unbundle [refname...]"; int cmd_bundle(int argc, const char **argv, const char *prefix) { @@ -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]; @@ -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); }