Skip to content

Commit c766e6f

Browse files
committed
Merge branch 'po/remote-set-head-usage'
* po/remote-set-head-usage: remote set-head -h: add long options to synopsis remote doc: document long forms of set-head options
2 parents cabb411 + e49c8f3 commit c766e6f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Documentation/git-remote.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SYNOPSIS
1313
'git remote add' [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url>
1414
'git remote rename' <old> <new>
1515
'git remote remove' <name>
16-
'git remote set-head' <name> (-a | -d | <branch>)
16+
'git remote set-head' <name> (-a | --auto | -d | --delete | <branch>)
1717
'git remote set-branches' [--add] <name> <branch>...
1818
'git remote set-url' [--push] <name> <newurl> [<oldurl>]
1919
'git remote set-url --add' [--push] <name> <newurl>
@@ -101,9 +101,9 @@ branch. For example, if the default branch for `origin` is set to
101101
`master`, then `origin` may be specified wherever you would normally
102102
specify `origin/master`.
103103
+
104-
With `-d`, the symbolic ref `refs/remotes/<name>/HEAD` is deleted.
104+
With `-d` or `--delete`, the symbolic ref `refs/remotes/<name>/HEAD` is deleted.
105105
+
106-
With `-a`, the remote is queried to determine its `HEAD`, then the
106+
With `-a` or `--auto`, the remote is queried to determine its `HEAD`, then the
107107
symbolic-ref `refs/remotes/<name>/HEAD` is set to the same branch. e.g., if the remote
108108
`HEAD` is pointed at `next`, "`git remote set-head origin -a`" will set
109109
the symbolic-ref `refs/remotes/origin/HEAD` to `refs/remotes/origin/next`. This will

builtin/remote.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static const char * const builtin_remote_usage[] = {
1212
N_("git remote add [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror=<fetch|push>] <name> <url>"),
1313
N_("git remote rename <old> <new>"),
1414
N_("git remote remove <name>"),
15-
N_("git remote set-head <name> (-a | -d | <branch>)"),
15+
N_("git remote set-head <name> (-a | --auto | -d | --delete |<branch>)"),
1616
N_("git remote [-v | --verbose] show [-n] <name>"),
1717
N_("git remote prune [-n | --dry-run] <name>"),
1818
N_("git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]"),
@@ -39,7 +39,7 @@ static const char * const builtin_remote_rm_usage[] = {
3939
};
4040

4141
static const char * const builtin_remote_sethead_usage[] = {
42-
N_("git remote set-head <name> (-a | -d | <branch>)"),
42+
N_("git remote set-head <name> (-a | --auto | -d | --delete | <branch>)"),
4343
NULL
4444
};
4545

0 commit comments

Comments
 (0)