Skip to content

Commit 1f986c4

Browse files
tfarinagitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e481b1d commit 1f986c4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

builtin-bundle.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
* bundle supporting "fetch", "pull", and "ls-remote".
1010
*/
1111

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...]";
1317

1418
int cmd_bundle(int argc, const char **argv, const char *prefix)
1519
{
@@ -20,7 +24,7 @@ int cmd_bundle(int argc, const char **argv, const char *prefix)
2024
char buffer[PATH_MAX];
2125

2226
if (argc < 3)
23-
usage(bundle_usage);
27+
usage(builtin_bundle_usage);
2428

2529
cmd = argv[1];
2630
bundle_file = argv[2];
@@ -59,5 +63,5 @@ int cmd_bundle(int argc, const char **argv, const char *prefix)
5963
return !!unbundle(&header, bundle_fd) ||
6064
list_bundle_refs(&header, argc, argv);
6165
} else
62-
usage(bundle_usage);
66+
usage(builtin_bundle_usage);
6367
}

0 commit comments

Comments
 (0)