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

[PATCH v2] branch: implement shortcut to delete last branch

From
AGAaron Greenberg <p@aaronjgreenberg.com>
Date
Mar 23, 2018, 22:40 UTC
Message-ID
<1521844835-23956-1-git-send-email-p@aaronjgreenberg.com>
In-Reply-To
<20180323085636.GA24416@sigill.intra.peff.net>

I updated the commit message to include my first email's cover letter and cleaned up the test.

Copying Junio, since he also had good comments in the conversation you linked.

I can appreciate Matthieu's points on the use of "-" in destructive commands. As of this writing, git-merge supports the "-" shorthand, which while not destructive, is at least _mutative_. Also, "git branch -d" is not destructive in the same way that "rm -rf" is destructive since you can recover the branch using the reflog.

One thing to consider is that approval of this patch extends the implementation of the "-" shorthand in a piecemeal, rather than consistent, way (implementing it in a consistent way was the goal of the patch set you mentioned in your previous email.) Is that okay? Or is it better to pick up the consistent approach where it was left?

Previous: Jeff KingNext: Aaron Greenberg
Message 5 of 9 in “branch: implement shortcut to delete last branch”
  1. branch: implement shortcut to delete last branchAaron Greenberg, Mar 23, 2018
  2. branch: implement shortcut to delete last branchAaron Greenberg, Mar 23, 2018
  3. Jeff KingMar 23, 2018
  4. Jeff KingMar 23, 2018
  5. branch: implement shortcut to delete last branchAaron Greenberg, Mar 23, 2018
  6. branch: implement shortcut to delete last branchAaron Greenberg, Mar 23, 2018
  7. Jeff KingMar 26, 2018
  8. git@matthieu-moy.frMar 26, 2018
  9. Junio C HamanoMar 26, 2018

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.