Skip to content

Commit 34263de

Browse files
aspotashevgitster
authored andcommitted
Replace deprecated dashed git commands in usage
Signed-off-by: Alexander Potashev <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5c7eee0 commit 34263de

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

builtin-merge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ struct strategy {
3636
};
3737

3838
static const char * const builtin_merge_usage[] = {
39-
"git-merge [options] <remote>...",
40-
"git-merge [options] <msg> HEAD <remote>",
39+
"git merge [options] <remote>...",
40+
"git merge [options] <msg> HEAD <remote>",
4141
NULL
4242
};
4343

builtin-receive-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "remote.h"
1010
#include "transport.h"
1111

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

1414
enum deny_action {
1515
DENY_IGNORE,

builtin-verify-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static int verify_one_pack(const char *path, int verbose)
107107
return err;
108108
}
109109

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

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

merge-index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int main(int argc, char **argv)
9292
signal(SIGCHLD, SIG_DFL);
9393

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

9797
git_extract_argv0_path(argv[0]);
9898

merge-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "blob.h"
55
#include "exec_cmd.h"
66

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

1010
struct merge_list {

mktag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ int main(int argc, char **argv)
158158
unsigned char result_sha1[20];
159159

160160
if (argc != 1)
161-
usage("git-mktag < signaturefile");
161+
usage("git mktag < signaturefile");
162162

163163
git_extract_argv0_path(argv[0]);
164164

mktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void write_tree(unsigned char *sha1)
6262
write_sha1_file(buf.buf, buf.len, tree_type, sha1);
6363
}
6464

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

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

patch-id.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static void generate_id_list(void)
7373
flush_current_id(patchlen, sha1, &ctx);
7474
}
7575

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

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

unpack-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main(int argc, char **argv)
2929
git_extract_argv0_path(argv[0]);
3030

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

upload-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "list-objects.h"
1212
#include "run-command.h"
1313

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

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

0 commit comments

Comments
 (0)