]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin-bundle.c
Fix some printf format warnings
[thirdparty/git.git] / builtin-bundle.c
index 9b58152047baebfdd6f26ffab31d49347e0cb069..2006cc5cd5cc4d381189f5cf7bdd09fcdd66b9ca 100644 (file)
@@ -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);
 }