Replace deprecated dashed git commands in usage

Signed-off-by: Alexander Potashev <aspotashev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Alexander Potashev 2009-01-04 21:39:27 +03:00 committed by Junio C Hamano
parent 5c7eee03da
commit 34263de026
10 changed files with 11 additions and 11 deletions

View File

@ -36,8 +36,8 @@ struct strategy {
}; };


static const char * const builtin_merge_usage[] = { static const char * const builtin_merge_usage[] = {
"git-merge [options] <remote>...", "git merge [options] <remote>...",
"git-merge [options] <msg> HEAD <remote>", "git merge [options] <msg> HEAD <remote>",
NULL NULL
}; };



View File

@ -9,7 +9,7 @@
#include "remote.h" #include "remote.h"
#include "transport.h" #include "transport.h"


static const char receive_pack_usage[] = "git-receive-pack <git-dir>"; static const char receive_pack_usage[] = "git receive-pack <git-dir>";


enum deny_action { enum deny_action {
DENY_IGNORE, DENY_IGNORE,

View File

@ -107,7 +107,7 @@ static int verify_one_pack(const char *path, int verbose)
return err; return err;
} }


static const char verify_pack_usage[] = "git-verify-pack [-v] <pack>..."; static const char verify_pack_usage[] = "git verify-pack [-v] <pack>...";


int cmd_verify_pack(int argc, const char **argv, const char *prefix) int cmd_verify_pack(int argc, const char **argv, const char *prefix)
{ {

View File

@ -92,7 +92,7 @@ int main(int argc, char **argv)
signal(SIGCHLD, SIG_DFL); signal(SIGCHLD, SIG_DFL);


if (argc < 3) if (argc < 3)
usage("git-merge-index [-o] [-q] <merge-program> (-a | [--] <filename>*)"); usage("git merge-index [-o] [-q] <merge-program> (-a | [--] <filename>*)");


git_extract_argv0_path(argv[0]); git_extract_argv0_path(argv[0]);



View File

@ -4,7 +4,7 @@
#include "blob.h" #include "blob.h"
#include "exec_cmd.h" #include "exec_cmd.h"


static const char merge_tree_usage[] = "git-merge-tree <base-tree> <branch1> <branch2>"; static const char merge_tree_usage[] = "git merge-tree <base-tree> <branch1> <branch2>";
static int resolve_directories = 1; static int resolve_directories = 1;


struct merge_list { struct merge_list {

View File

@ -158,7 +158,7 @@ int main(int argc, char **argv)
unsigned char result_sha1[20]; unsigned char result_sha1[20];


if (argc != 1) if (argc != 1)
usage("git-mktag < signaturefile"); usage("git mktag < signaturefile");


git_extract_argv0_path(argv[0]); git_extract_argv0_path(argv[0]);



View File

@ -62,7 +62,7 @@ static void write_tree(unsigned char *sha1)
write_sha1_file(buf.buf, buf.len, tree_type, sha1); write_sha1_file(buf.buf, buf.len, tree_type, sha1);
} }


static const char mktree_usage[] = "git-mktree [-z]"; static const char mktree_usage[] = "git mktree [-z]";


int main(int ac, char **av) int main(int ac, char **av)
{ {

View File

@ -73,7 +73,7 @@ static void generate_id_list(void)
flush_current_id(patchlen, sha1, &ctx); flush_current_id(patchlen, sha1, &ctx);
} }


static const char patch_id_usage[] = "git-patch-id < patch"; static const char patch_id_usage[] = "git patch-id < patch";


int main(int argc, char **argv) int main(int argc, char **argv)
{ {

View File

@ -29,7 +29,7 @@ int main(int argc, char **argv)
git_extract_argv0_path(argv[0]); git_extract_argv0_path(argv[0]);


if (argc != 2) if (argc != 2)
usage("git-unpack-file <sha1>"); usage("git unpack-file <sha1>");
if (get_sha1(argv[1], sha1)) if (get_sha1(argv[1], sha1))
die("Not a valid object name %s", argv[1]); die("Not a valid object name %s", argv[1]);



View File

@ -11,7 +11,7 @@
#include "list-objects.h" #include "list-objects.h"
#include "run-command.h" #include "run-command.h"


static const char upload_pack_usage[] = "git-upload-pack [--strict] [--timeout=nn] <dir>"; static const char upload_pack_usage[] = "git upload-pack [--strict] [--timeout=nn] <dir>";


/* bits #0..7 in revision.h, #8..10 in commit.c */ /* bits #0..7 in revision.h, #8..10 in commit.c */
#define THEY_HAVE (1u << 11) #define THEY_HAVE (1u << 11)