summaryrefslogtreecommitdiff
path: root/builtin-bundle.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2009-09-17 17:20:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-19 02:47:15 (GMT)
commit1f986c4ac4df6fcac4b19bc9cd3a8b6c8f0ffdea (patch)
tree12afcdd057ebe4127ac01549a1157d7926befda5 /builtin-bundle.c
parente481b1d8db9947681a5c124545ef06951f42155d (diff)
downloadgit-1f986c4ac4df6fcac4b19bc9cd3a8b6c8f0ffdea.zip
git-1f986c4ac4df6fcac4b19bc9cd3a8b6c8f0ffdea.tar.gz
git-1f986c4ac4df6fcac4b19bc9cd3a8b6c8f0ffdea.tar.bz2
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>
Diffstat (limited to 'builtin-bundle.c')
-rw-r--r--builtin-bundle.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/builtin-bundle.c b/builtin-bundle.c
index 9b58152..2006cc5 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 <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)
{
@@ -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);
}