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 <tfransosi@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Thiago Farina committed
Sep 17, 2009 at 13:20 UTC
1f986c4ac4df6fcac4b19bc9cd3a8b6c8f0ffdea
1 file changed
+7
-3
builtin-bundle.c
+7
-3
@@ -9,7 +9,11 @@
9
* bundle supporting "fetch", "pull", and "ls-remote".
10
*/
11
12
-static const char *bundle_usage="git bundle (create <bundle> <git rev-list args> | verify <bundle> | list-heads <bundle> [refname]... | unbundle <bundle> [refname]... )";
12
+static const char builtin_bundle_usage[] =
13
+ "git bundle create <file> <git-rev-list args>\n"
14
+ " or: git bundle verify <file>\n"
15
+ " or: git bundle list-heads <file> [refname...]\n"
16
+ " or: git bundle unbundle <file> [refname...]";
17
18
int cmd_bundle(int argc, const char **argv, const char *prefix)
19
{
@@ -20,7 +24,7 @@ int cmd_bundle(int argc, const char **argv, const char *prefix)
24
char buffer[PATH_MAX];
25
26
if (argc < 3)
23
- usage(bundle_usage);
27
+ usage(builtin_bundle_usage);
28
29
cmd = argv[1];
30
bundle_file = argv[2];
@@ -59,5 +63,5 @@ int cmd_bundle(int argc, const char **argv, const char *prefix)
63
return !!unbundle(&header, bundle_fd) ||
64
list_bundle_refs(&header, argc, argv);
65
} else
62
- usage(bundle_usage);
66
+ usage(builtin_bundle_usage);
67
}