Skip to content

Commit ce785c5

Browse files
committed
Merge branch 'ho/maint-dashless' into maint
* ho/maint-dashless: Start conforming code to "git subcmd" style part 2
2 parents b66e00f + 05207a2 commit ce785c5

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

builtin-checkout-index.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55
*
66
* Careful: order of argument flags does matter. For example,
77
*
8-
* git-checkout-index -a -f file.c
8+
* git checkout-index -a -f file.c
99
*
1010
* Will first check out all files listed in the cache (but not
1111
* overwrite any old ones), and then force-checkout "file.c" a
1212
* second time (ie that one _will_ overwrite any old contents
1313
* with the same filename).
1414
*
15-
* Also, just doing "git-checkout-index" does nothing. You probably
16-
* meant "git-checkout-index -a". And if you want to force it, you
17-
* want "git-checkout-index -f -a".
15+
* Also, just doing "git checkout-index" does nothing. You probably
16+
* meant "git checkout-index -a". And if you want to force it, you
17+
* want "git checkout-index -f -a".
1818
*
1919
* Intuitiveness is not the goal here. Repeatability is. The
2020
* reason for the "no arguments means no work" thing is that
2121
* from scripts you are supposed to be able to do things like
2222
*
23-
* find . -name '*.h' -print0 | xargs -0 git-checkout-index -f --
23+
* find . -name '*.h' -print0 | xargs -0 git checkout-index -f --
2424
*
2525
* or:
2626
*
27-
* find . -name '*.h' -print0 | git-checkout-index -f -z --stdin
27+
* find . -name '*.h' -print0 | git checkout-index -f -z --stdin
2828
*
2929
* which will force all existing *.h files to be replaced with
3030
* their cached copies. If an empty command line implied "all",
@@ -107,7 +107,7 @@ static int checkout_file(const char *name, int prefix_length)
107107
}
108108

109109
if (!state.quiet) {
110-
fprintf(stderr, "git-checkout-index: %s ", name);
110+
fprintf(stderr, "git checkout-index: %s ", name);
111111
if (!has_same_name)
112112
fprintf(stderr, "is not in the cache");
113113
else if (checkout_stage)

builtin-commit-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static void check_valid(unsigned char *sha1, enum object_type expect)
2424
typename(expect));
2525
}
2626

27-
static const char commit_tree_usage[] = "git-commit-tree <sha1> [-p <sha1>]* < changelog";
27+
static const char commit_tree_usage[] = "git commit-tree <sha1> [-p <sha1>]* < changelog";
2828

2929
static void new_parent(struct commit *parent, struct commit_list **parents_p)
3030
{

builtin-fetch-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
750750
if (!ret && nr_heads) {
751751
/* If the heads to pull were given, we should have
752752
* consumed all of them by matching the remote.
753-
* Otherwise, 'git-fetch remote no-such-ref' would
753+
* Otherwise, 'git fetch remote no-such-ref' would
754754
* silently succeed without issuing an error.
755755
*/
756756
for (i = 0; i < nr_heads; i++)

builtin-fetch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ static void add_merge_config(struct ref **head,
8686
/*
8787
* Not fetched to a tracking branch? We need to fetch
8888
* it anyway to allow this branch's "branch.$name.merge"
89-
* to be honored by git-pull, but we do not have to
89+
* to be honored by 'git pull', but we do not have to
9090
* fail if branch.$name.merge is misconfigured to point
9191
* at a nonexisting branch. If we were indeed called by
92-
* git-pull, it will notice the misconfiguration because
92+
* 'git pull', it will notice the misconfiguration because
9393
* there is no entry in the resulting FETCH_HEAD marked
9494
* for merging.
9595
*/
@@ -396,7 +396,7 @@ static int store_updated_refs(const char *url, const char *remote_name,
396396
* The refs we are going to fetch are in to_fetch (nr_heads in
397397
* total). If running
398398
*
399-
* $ git-rev-list --objects to_fetch[0] to_fetch[1] ... --not --all
399+
* $ git rev-list --objects to_fetch[0] to_fetch[1] ... --not --all
400400
*
401401
* does not error out, that means everything reachable from the
402402
* refs we are going to fetch exists and is connected to some of

builtin-http-fetch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int cmd_http_fetch(int argc, const char **argv, const char *prefix)
4242
arg++;
4343
}
4444
if (argc < arg + 2 - commits_on_stdin) {
45-
usage("git-http-fetch [-c] [-t] [-a] [-v] [--recover] [-w ref] [--stdin] commit-id url");
45+
usage("git http-fetch [-c] [-t] [-a] [-v] [--recover] [-w ref] [--stdin] commit-id url");
4646
return 1;
4747
}
4848
if (commits_on_stdin) {
@@ -75,7 +75,7 @@ int cmd_http_fetch(int argc, const char **argv, const char *prefix)
7575
fprintf(stderr,
7676
"Some loose object were found to be corrupt, but they might be just\n"
7777
"a false '404 Not Found' error message sent with incorrect HTTP\n"
78-
"status code. Suggest running git-fsck.\n");
78+
"status code. Suggest running 'git fsck'.\n");
7979
}
8080

8181
walker_free(walker);

0 commit comments

Comments
 (0)