git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Dec 8, 2014, 16:28 UTC
Message-ID
<cover.1418055912.git.git@drmicha.warpmail.net>
In-Reply-To
<xmqqbnniq8k8.fsf@gitster.dls.corp.google.com>

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(-)
-- 
2.2.0.345.g7041aac
Previous: Junio C HamanoNext: Michael J Gruber
Message 7 of 9 in “Make git branch -f forceful”
  1. 0/2 Make git branch -f forcefulMichael J Gruber, Dec 4, 2014
  2. 1/2 t3200-branch: test -MMichael J Gruber, Dec 4, 2014
  3. 2/2 branch: allow -f with -m and -dMichael J Gruber, Dec 4, 2014
  4. Junio C HamanoDec 4, 2014
  5. Michael J GruberDec 5, 2014
  6. Junio C HamanoDec 5, 2014
  7. 0/2 Make git branch -f forcefulMichael J Gruber, Dec 8, 2014
  8. 1/2 t3200-branch: test -MMichael J Gruber, Dec 8, 2014
  9. 2/2 branch: allow -f with -m and -dMichael J Gruber, Dec 8, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.