Skip to content

Commit 32ef08f

Browse files
committed
Merge branch 'maint'
* maint: help: Do not unnecessarily look for a repository Documentation: Fix a few i.e./e.g. mix-ups Documentation: Document --branch option in git clone synopsis
2 parents 36a83f3 + af6fbf9 commit 32ef08f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Documentation/git-bundle.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ssh, rsync, http) cannot be used. This command provides support for
2424
'git-fetch' and 'git-pull' to operate by packaging objects and references
2525
in an archive at the originating machine, then importing those into
2626
another repository using 'git-fetch' and 'git-pull'
27-
after moving the archive by some means (i.e., by sneakernet). As no
27+
after moving the archive by some means (e.g., by sneakernet). As no
2828
direct connection between the repositories exists, the user must specify a
2929
basis for the bundle that is held by the destination repository: the
3030
bundle assumes that all objects in the basis are already in the

Documentation/git-clone.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SYNOPSIS
1111
[verse]
1212
'git clone' [--template=<template_directory>]
1313
[-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
14-
[-o <name>] [-u <upload-pack>] [--reference <repository>]
14+
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
1515
[--depth <depth>] [--recursive] [--] <repository> [<directory>]
1616

1717
DESCRIPTION

Documentation/gitcore-tutorial.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ $ git tag -s <tagname>
602602
----------------
603603

604604
which will sign the current `HEAD` (but you can also give it another
605-
argument that specifies the thing to tag, i.e., you could have tagged the
605+
argument that specifies the thing to tag, e.g., you could have tagged the
606606
current `mybranch` point by using `git tag <tagname> mybranch`).
607607

608608
You normally only do signed tags for major releases or things

builtin-help.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,16 +427,16 @@ int cmd_help(int argc, const char **argv, const char *prefix)
427427
return 0;
428428
}
429429

430-
setup_git_directory_gently(&nongit);
431-
git_config(git_help_config, NULL);
432-
433430
if (!argv[0]) {
434431
printf("usage: %s\n\n", git_usage_string);
435432
list_common_cmds_help();
436433
printf("\n%s\n", git_more_info_string);
437434
return 0;
438435
}
439436

437+
setup_git_directory_gently(&nongit);
438+
git_config(git_help_config, NULL);
439+
440440
alias = alias_lookup(argv[0]);
441441
if (alias && !is_git_command(argv[0])) {
442442
printf("`git %s' is aliased to `%s'\n", argv[0], alias);

0 commit comments

Comments
 (0)