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

[PATCH] Allow "-" as a short-hand for "@{-1}" in "git branch -d @{-1}"

From
DPDinesh Polathula <dpdineshp2@gmail.com>
Date
Mar 6, 2016, 12:48 UTC
Message-ID
<1457268494-8394-1-git-send-email-dpdineshp2@gmail.com>
From: Dinesh <dpdineshp2@gmail.com>

This patch allows the usage of "-" as a short-hand for "@{-1}" in "git branch -d <at> {-1}".

Note : This is a microproject that is part of the Google Summer of Code application process. I am interested in working on the git Beginner mode implementation as part of Google Summer of Code. The mentor details for this particular project are not available on the Ideas page. The mentors are likely on this mailing list, so I request the mentors to drop me a mail so I can get in contact with you to further discuss the git Beginner mode project.

Dinesh (1):
  Allow "-" as a short-hand for "@{-1}" in "git branch -d @{-1}"
 builtin/branch.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
-- 
2.8.0.rc0
Next: Dinesh Polathula
Message 1 of 4 in “Allow "-" as a short-hand for "@{-1}" in "git branch -d @{-1}"”
  1. Allow "-" as a short-hand for "@{-1}" in "git branch -d @{-1}"Dinesh Polathula, Mar 6, 2016
  2. Allow "-" as a short-hand for "@{-1}" in "git branch -d @{-1}"Dinesh Polathula, Mar 6, 2016
  3. Eric SunshineMar 6, 2016
  4. Junio C HamanoMar 6, 2016

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.