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

Re: [PATCH 2/2] push: add '-d' as shorthand for '--delete'

From
Patrick Steinhardt <ps@pks.im>
Date
Dec 15, 2015, 09:22 UTC
Message-ID
<20151215092206.GA1209@pks-xps.elego.de>
In-Reply-To
<xmqqegeokfet.fsf@gitster.mtv.corp.google.com>
On Mon, Dec 14, 2015 at 11:18:18AM -0800, Junio C Hamano wrote:
Show 7 quoted lines
> Patrick Steinhardt <ps@pks.im> writes:
> 
> > It is only possible to delete branches on remotes by specifying
> > the long '--delete' flag.
> 
> Not really.  "git push origin :unnecessary-branch" should just work
> with out "--delete" or "-d".

Well, sure, didn't think about this when phrasing the commit message. Still I think my point stands that it is more convenient for users to also have the '-d' shorthand, as is also in use for branch deletion in `git-branch`. I'll resend this patch with a corrected message.

Patrick
Previous: Junio C HamanoNext: Jeff King
Message 4 of 7 in “push: add '--delete' flag to synopsis”
  1. 1/2 push: add '--delete' flag to synopsisPatrick Steinhardt, Dec 14, 2015
  2. 2/2 push: add '-d' as shorthand for '--delete'Patrick Steinhardt, Dec 14, 2015
  3. Junio C HamanoDec 14, 2015
  4. Patrick SteinhardtDec 15, 2015
  5. Jeff KingDec 14, 2015
  6. Junio C HamanoDec 16, 2015
  7. Jeff KingDec 16, 2015

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.