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
Andreas Ericsson <ae@op5.se>
Date
Jun 19, 2008, 22:30 UTC
Message-ID
<485ADE10.7070404@op5.se>
In-Reply-To
<1213884787-24692-1-git-send-email-pdebie@ai.rug.nl>
Pieter de Bie wrote:
> While this is already possible with the :<dst> refspec syntax,
> a flag specifically for this action is more userfriendly.
> 

I like it. I always have to tell my co-workers which side of the colon the branch-name to delete should be on. Since they want the remote to lose the branch, it seems logical to some of them to make that side empty. This would make one (very small) headache of mine go away.

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.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Pieter de BieNext: Pieter de Bie
Message 2 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.