remote doc: document long forms of set-head options
"git remote set-head" has always supported --add and --delete as synonyms for the -a and -d option but forgot to document them. Signed-off-by: Philip Oakley <philipoakley@iee.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Philip Oakley committed
Sep 21, 2013 at 16:51 UTC
159543e8317cd13611dc999efddd3a89c11c1229
1 file changed
+3
-3
Documentation/git-remote.txt
+3
-3
@@ -13,7 +13,7 @@ SYNOPSIS
13
'git remote add' [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url>
14
'git remote rename' <old> <new>
15
'git remote remove' <name>
16
-'git remote set-head' <name> (-a | -d | <branch>)
16
+'git remote set-head' <name> (-a | --auto | -d | --delete | <branch>)
17
'git remote set-branches' [--add] <name> <branch>...
18
'git remote set-url' [--push] <name> <newurl> [<oldurl>]
19
'git remote set-url --add' [--push] <name> <newurl>
@@ -101,9 +101,9 @@ branch. For example, if the default branch for `origin` is set to
101
`master`, then `origin` may be specified wherever you would normally
102
specify `origin/master`.
103
+
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.
105
+
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
107
symbolic-ref `refs/remotes/<name>/HEAD` is set to the same branch. e.g., if the remote
108
`HEAD` is pointed at `next`, "`git remote set-head origin -a`" will set
109
the symbolic-ref `refs/remotes/origin/HEAD` to `refs/remotes/origin/next`. This will