Skip to content

Commit 34baebc

Browse files
heikkiorsilagitster
authored andcommitted
Start conforming code to "git subcmd" style
User notifications are presented as 'git cmd', and code comments are presented as '"cmd"' or 'git's cmd', rather than 'git-cmd'. Signed-off-by: Heikki Orsila <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 53d1589 commit 34baebc

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

builtin-apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static void say_patch_name(FILE *output, const char *pre,
274274
static void read_patch_file(struct strbuf *sb, int fd)
275275
{
276276
if (strbuf_read(sb, fd, 0) < 0)
277-
die("git-apply: read returned %s", strerror(errno));
277+
die("git apply: read returned %s", strerror(errno));
278278

279279
/*
280280
* Make sure that we have some slop in the buffer

builtin-archive.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ static int run_remote_archiver(const char *remote, int argc,
4747

4848
len = packet_read_line(fd[0], buf, sizeof(buf));
4949
if (!len)
50-
die("git-archive: expected ACK/NAK, got EOF");
50+
die("git archive: expected ACK/NAK, got EOF");
5151
if (buf[len-1] == '\n')
5252
buf[--len] = 0;
5353
if (strcmp(buf, "ACK")) {
5454
if (len > 5 && !prefixcmp(buf, "NACK "))
55-
die("git-archive: NACK %s", buf + 5);
56-
die("git-archive: protocol error");
55+
die("git archive: NACK %s", buf + 5);
56+
die("git archive: protocol error");
5757
}
5858

5959
len = packet_read_line(fd[0], buf, sizeof(buf));
6060
if (len)
61-
die("git-archive: expected a flush");
61+
die("git archive: expected a flush");
6262

6363
/* Now, start reading from fd[0] and spit it out to stdout */
6464
rv = recv_sideband("archive", fd[0], 1, 2);

builtin-blame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ static int prepare_lines(struct scoreboard *sb)
17911791

17921792
/*
17931793
* Add phony grafts for use with -S; this is primarily to
1794-
* support git-cvsserver that wants to give a linear history
1794+
* support git's cvsserver that wants to give a linear history
17951795
* to its clients.
17961796
*/
17971797
static int read_ancestry(const char *graft_file)

builtin-bundle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
* Basic handler for bundle files to connect repositories via sneakernet.
77
* Invocation must include action.
88
* This function can create a bundle or provide information on an existing
9-
* bundle supporting git-fetch, git-pull, and git-ls-remote
9+
* 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 *bundle_usage="git bundle (create <bundle> <git rev-list args> | verify <bundle> | list-heads <bundle> [refname]... | unbundle <bundle> [refname]... )";
1313

1414
int cmd_bundle(int argc, const char **argv, const char *prefix)
1515
{

builtin-cat-file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name)
137137
break;
138138

139139
default:
140-
die("git-cat-file: unknown option: %s\n", exp_type);
140+
die("git cat-file: unknown option: %s\n", exp_type);
141141
}
142142

143143
if (!buf)
144-
die("git-cat-file %s: bad file", obj_name);
144+
die("git cat-file %s: bad file", obj_name);
145145

146146
write_or_die(1, buf, size);
147147
return 0;

builtin-check-ref-format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
int cmd_check_ref_format(int argc, const char **argv, const char *prefix)
1010
{
1111
if (argc != 2)
12-
usage("git-check-ref-format refname");
12+
usage("git check-ref-format refname");
1313
return !!check_ref_format(argv[1]);
1414
}

0 commit comments

Comments
 (0)