提交 3b0c1966 编写于 作者: J Junio C Hamano

Merge branch 'maint'

* maint:
  Let check_preimage() use memset() to initialize "struct checkout"
  fetch/push: fix usage strings
...@@ -8,13 +8,13 @@ git-fetch - Download objects and refs from another repository ...@@ -8,13 +8,13 @@ git-fetch - Download objects and refs from another repository
SYNOPSIS SYNOPSIS
-------- --------
'git fetch' <options> <repository> <refspec>... 'git fetch' [<options>] [<repository> [<refspec>...]]
'git fetch' <options> <group> 'git fetch' [<options>] <group>
'git fetch' --multiple <options> [<repository> | <group>]... 'git fetch' --multiple [<options>] [<repository> | <group>]...
'git fetch' --all <options> 'git fetch' --all [<options>]
DESCRIPTION DESCRIPTION
......
...@@ -11,7 +11,7 @@ SYNOPSIS ...@@ -11,7 +11,7 @@ SYNOPSIS
[verse] [verse]
'git push' [--all | --mirror | --tags] [-n | --dry-run] [--receive-pack=<git-receive-pack>] 'git push' [--all | --mirror | --tags] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
[--repo=<repository>] [-f | --force] [-v | --verbose] [-u | --set-upstream] [--repo=<repository>] [-f | --force] [-v | --verbose] [-u | --set-upstream]
[<repository> <refspec>...] [<repository> [<refspec>...]]
DESCRIPTION DESCRIPTION
----------- -----------
......
...@@ -2824,11 +2824,8 @@ static int check_preimage(struct patch *patch, struct cache_entry **ce, struct s ...@@ -2824,11 +2824,8 @@ static int check_preimage(struct patch *patch, struct cache_entry **ce, struct s
if (stat_ret < 0) { if (stat_ret < 0) {
struct checkout costate; struct checkout costate;
/* checkout */ /* checkout */
memset(&costate, 0, sizeof(costate));
costate.base_dir = ""; costate.base_dir = "";
costate.base_dir_len = 0;
costate.force = 0;
costate.quiet = 0;
costate.not_new = 0;
costate.refresh_cache = 1; costate.refresh_cache = 1;
if (checkout_entry(*ce, &costate, NULL) || if (checkout_entry(*ce, &costate, NULL) ||
lstat(old_name, st)) lstat(old_name, st))
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
#include "transport.h" #include "transport.h"
static const char * const builtin_fetch_usage[] = { static const char * const builtin_fetch_usage[] = {
"git fetch [options] [<repository> <refspec>...]", "git fetch [<options>] [<repository> [<refspec>...]]",
"git fetch [options] <group>", "git fetch [<options>] <group>",
"git fetch --multiple [options] [<repository> | <group>]...", "git fetch --multiple [<options>] [<repository> | <group>]...",
"git fetch --all [options]", "git fetch --all [<options>]",
NULL NULL
}; };
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "parse-options.h" #include "parse-options.h"
static const char * const push_usage[] = { static const char * const push_usage[] = {
"git push [<options>] [<repository> <refspec>...]", "git push [<options>] [<repository> [<refspec>...]]",
NULL, NULL,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册