Skip to content

Commit 5aea395

Browse files
rjustogitster
authored andcommitted
branch: clarify <oldbranch> term
Since 52d59cc (branch: add a --copy (-c) option to go with --move (-m), 2017-06-18) <oldbranch> is used in more operations than just -m. Let's also clarify what we do if <oldbranch> is omitted. Signed-off-by: Rubén Justo <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 564d025 commit 5aea395

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/git-branch.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ superproject's "origin/main", but tracks the submodule's "origin/main".
312312
option is omitted, the current HEAD will be used instead.
313313

314314
<oldbranch>::
315-
The name of an existing branch to rename.
315+
The name of an existing branch. If this option is omitted,
316+
the name of the current branch will be used instead.
316317

317318
<newbranch>::
318319
The new name for an existing branch. The same restrictions as for

0 commit comments

Comments
 (0)