]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3200-branch.sh
branch: allow -f with -m and -d
authorMichael J Gruber <git@drmicha.warpmail.net>
Mon, 8 Dec 2014 16:28:45 +0000 (17:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Dec 2014 00:27:47 +0000 (16:27 -0800)
commit356e91f2ecc581f3a446bba566ab1756dc57a583
tree35f1aac2c1db40bc674773127cf0cd9452b8a0b8
parentff7aa81f8971daf29826b3881e0e2df5bd7df90c
branch: allow -f with -m and -d

-f/--force is the standard way to force an action, and is used by branch
for the recreation of existing branches, but not for deleting unmerged
branches nor for renaming to an existing branch.

Make "-m -f" equivalent to "-M" and "-d -f" equivalent to" -D", i.e.
allow -f/--force to be used with -m/-d also.

For the list modes, "-f" is simply ignored.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
t/t3200-branch.sh