branch: clarify <oldbranch> term

Since 52d59cc645 (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 <rjusto@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Rubén Justo committed Jan 6, 2024 at 15:38 UTC 5aea3955bcd716c5dcb3323ef4eab72da70db623
1 file changed +2 -1
Documentation/git-branch.txt
+2 -1
@@ -312,7 +312,8 @@ superproject's "origin/main", but tracks the submodule's "origin/main".
312 option is omitted, the current HEAD will be used instead.
313
314 <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.
317
318 <newbranch>::
319 The new name for an existing branch. The same restrictions as for