Skip to content

Commit a060f3d

Browse files
tmzullingergitster
authored andcommitted
branch doc: remove --set-upstream from synopsis
Support for the --set-upstream option was removed in 5266884 (builtin/branch: stop supporting the "--set-upstream" option, 2017-08-17), after a long deprecation period. Remove the option from the command synopsis for consistency. Replace another reference to it in the description of `--delete` with `--set-upstream-to`. Signed-off-by: Todd Zullinger <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5266884 commit a060f3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-branch.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SYNOPSIS
1414
[(--merged | --no-merged) [<commit>]]
1515
[--contains [<commit]] [--no-contains [<commit>]]
1616
[--points-at <object>] [--format=<format>] [<pattern>...]
17-
'git branch' [--set-upstream | --track | --no-track] [-l] [-f] <branchname> [<start-point>]
17+
'git branch' [--track | --no-track] [-l] [-f] <branchname> [<start-point>]
1818
'git branch' (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>]
1919
'git branch' --unset-upstream [<branchname>]
2020
'git branch' (-m | -M) [<oldbranch>] <newbranch>
@@ -81,7 +81,7 @@ OPTIONS
8181
--delete::
8282
Delete a branch. The branch must be fully merged in its
8383
upstream branch, or in `HEAD` if no upstream was set with
84-
`--track` or `--set-upstream`.
84+
`--track` or `--set-upstream-to`.
8585

8686
-D::
8787
Shortcut for `--delete --force`.

0 commit comments

Comments
 (0)