Skip to content

Make git branch -f forceful

Michael J Gruber git 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2t3200-branch: test -Mt/t3200-branch.sh+9 -00 replies
2/2branch: allow -f with -m and -dbuiltin/branch.c t/t3200-branch.sh+14 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] Make git branch -f forceful

For many git commands, '-f/--force' is a way to force actions which would otherwise error out. Way more than once, I've been trying this with 'git branch -d' and 'git branch -m'...

I've had these two patches sitting in my tree for 3 years now it seems. Here's a rebase.

In v2 I rename force_create to force and spell out the "-f" behaviour for other options in the commit message.

Michael J Gruber (2):
t3200-branch: test -M
branch: allow -f with -m and -d

 builtin/branch.c  | 13 +++++++++----
 t/t3200-branch.sh | 14 ++++++++++++++
 2 files changed, 23 insertions(+), 4 deletions(-)
Signature · 1 line
2.2.0.345.g7041aac