Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  Let check_preimage() use memset() to initialize "struct checkout"
  fetch/push: fix usage strings
  • Loading branch information
Junio C Hamano committed Apr 10, 2010
2 parents da288e2 + 54fd955 commit 3b0c196
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
8 changes: 4 additions & 4 deletions Documentation/git-fetch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ git-fetch - Download objects and refs from another repository

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
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-push.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SYNOPSIS
[verse]
'git push' [--all | --mirror | --tags] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
[--repo=<repository>] [-f | --force] [-v | --verbose] [-u | --set-upstream]
[<repository> <refspec>...]
[<repository> [<refspec>...]]

DESCRIPTION
-----------
Expand Down
5 changes: 1 addition & 4 deletions builtin/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -2824,11 +2824,8 @@ static int check_preimage(struct patch *patch, struct cache_entry **ce, struct s
if (stat_ret < 0) {
struct checkout costate;
/* checkout */
memset(&costate, 0, sizeof(costate));
costate.base_dir = "";
costate.base_dir_len = 0;
costate.force = 0;
costate.quiet = 0;
costate.not_new = 0;
costate.refresh_cache = 1;
if (checkout_entry(*ce, &costate, NULL) ||
lstat(old_name, st))
Expand Down
8 changes: 4 additions & 4 deletions builtin/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#include "transport.h"

static const char * const builtin_fetch_usage[] = {
"git fetch [options] [<repository> <refspec>...]",
"git fetch [options] <group>",
"git fetch --multiple [options] [<repository> | <group>]...",
"git fetch --all [options]",
"git fetch [<options>] [<repository> [<refspec>...]]",
"git fetch [<options>] <group>",
"git fetch --multiple [<options>] [<repository> | <group>]...",
"git fetch --all [<options>]",
NULL
};

Expand Down
2 changes: 1 addition & 1 deletion builtin/push.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "parse-options.h"

static const char * const push_usage[] = {
"git push [<options>] [<repository> <refspec>...]",
"git push [<options>] [<repository> [<refspec>...]]",
NULL,
};

Expand Down

0 comments on commit 3b0c196

Please sign in to comment.