branch -m: allow renaming a yet-unborn branch
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 11 Dec 2020 11:36:55 +0000 (11:36 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Dec 2020 23:53:50 +0000 (15:53 -0800)
commitcfaff3aac8063ec72f03c6761328c7fa44a15b34
treec8fbd9daf268b486d048b26859af35fbafcc83c0
parent1296cbe4b4675f429eb20b85bb86ec61546103fb
branch -m: allow renaming a yet-unborn branch

In one of the next commits, we would like to give users some advice
regarding the initial branch name, and how to modify it.

To that end, it would be good if `git branch -m <name>` worked in a
freshly initialized repository without any commits. Let's make it so.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
t/t0001-init.sh