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

Re: [PATCH] git-push: add a --delete flag to allow branch deletion

From
SRSverre Rabbelier <alturin@gmail.com>
Date
Jun 19, 2008, 23:20 UTC
Message-ID
<bd6139dc0806191620y3f821c15h91454ddef2173590@mail.gmail.com>
In-Reply-To
<4BED18CA-BFFE-4F35-A484-6CF0908D3FC1@ai.rug.nl>
On Fri, Jun 20, 2008 at 12:55 AM, Pieter de Bie <pdebie@ai.rug.nl> wrote:
Show 9 quoted lines
> On 20 jun 2008, at 00:30, Andreas Ericsson wrote:
>
>> Question though; does it delete the currently checked out
>> branch if no branch-name is given? I'd prefer if one has
>> to explicitly name the branch to delete.
>
> You have to explicitly give it a remote and one or more branches
> to delete. I thought it would be best to be unambiguous in cases
> where deletion is concerned :)

I like it too, it's one of the most unintuitive parts of the git interface imo. I am guessing there is no "-d" switch because deletion is involved? Then again, there is a "git branch -d/D"?

-- 
Cheers,

Sverre Rabbelier
Previous: Pieter de BieNext: Junio C Hamano
Message 4 of 5 in “git-push: add a --delete flag to allow branch deletion”
  1. git-push: add a --delete flag to allow branch deletionPieter de Bie, Jun 19, 2008
  2. Andreas EricssonJun 19, 2008
  3. Pieter de BieJun 19, 2008
  4. Sverre RabbelierJun 19, 2008
  5. Junio C HamanoJun 20, 2008

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.