Skip to content

Commit 3b0c196

Browse files
committed
Merge branch 'maint'
* maint: Let check_preimage() use memset() to initialize "struct checkout" fetch/push: fix usage strings
2 parents da288e2 + 54fd955 commit 3b0c196

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

Documentation/git-fetch.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ git-fetch - Download objects and refs from another repository
88

99
SYNOPSIS
1010
--------
11-
'git fetch' <options> <repository> <refspec>...
11+
'git fetch' [<options>] [<repository> [<refspec>...]]
1212

13-
'git fetch' <options> <group>
13+
'git fetch' [<options>] <group>
1414

15-
'git fetch' --multiple <options> [<repository> | <group>]...
15+
'git fetch' --multiple [<options>] [<repository> | <group>]...
1616

17-
'git fetch' --all <options>
17+
'git fetch' --all [<options>]
1818

1919

2020
DESCRIPTION

Documentation/git-push.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SYNOPSIS
1111
[verse]
1212
'git push' [--all | --mirror | --tags] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
1313
[--repo=<repository>] [-f | --force] [-v | --verbose] [-u | --set-upstream]
14-
[<repository> <refspec>...]
14+
[<repository> [<refspec>...]]
1515

1616
DESCRIPTION
1717
-----------

builtin/apply.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2824,11 +2824,8 @@ static int check_preimage(struct patch *patch, struct cache_entry **ce, struct s
28242824
if (stat_ret < 0) {
28252825
struct checkout costate;
28262826
/* checkout */
2827+
memset(&costate, 0, sizeof(costate));
28272828
costate.base_dir = "";
2828-
costate.base_dir_len = 0;
2829-
costate.force = 0;
2830-
costate.quiet = 0;
2831-
costate.not_new = 0;
28322829
costate.refresh_cache = 1;
28332830
if (checkout_entry(*ce, &costate, NULL) ||
28342831
lstat(old_name, st))

builtin/fetch.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
#include "transport.h"
1515

1616
static const char * const builtin_fetch_usage[] = {
17-
"git fetch [options] [<repository> <refspec>...]",
18-
"git fetch [options] <group>",
19-
"git fetch --multiple [options] [<repository> | <group>]...",
20-
"git fetch --all [options]",
17+
"git fetch [<options>] [<repository> [<refspec>...]]",
18+
"git fetch [<options>] <group>",
19+
"git fetch --multiple [<options>] [<repository> | <group>]...",
20+
"git fetch --all [<options>]",
2121
NULL
2222
};
2323

builtin/push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "parse-options.h"
1111

1212
static const char * const push_usage[] = {
13-
"git push [<options>] [<repository> <refspec>...]",
13+
"git push [<options>] [<repository> [<refspec>...]]",
1414
NULL,
1515
};
1616

0 commit comments

Comments
 (0)