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

[PATCH/RFC 0/2][GSoC] revision.c: Allow "-" as stand-in for "@{-1}" everywhere a branch is allowed

From
KCKenny Lee Sin Cheong <kenny.lee28@gmail.com>
Date
Mar 16, 2015, 15:11 UTC
Message-ID
<1426518703-15785-1-git-send-email-kenny.lee28@gmail.com>
This is an attempt at a microproject for GSoC
An attempt to add revision range support to Junio's JFF patch sent a few days ago. The first patch is the a copy of the one he posted.
I was wondering if it was a good idea to add support for commands like "<rev>..-". Files that starts with "-" requires "--" or a "./" format but what if we have a file named "next..-" and call "git log next..-" ?
Junio C Hamano (1):
  "-" and "@{-1}" on various programs
Kenny Lee Sin Cheong (1):
  Add revision range support on "-" and "@{-1}"
 builtin/checkout.c |  3 ---
 builtin/merge.c    |  3 +--
 builtin/revert.c   |  2 --
 revision.c         | 16 +++++++++++++--
 sha1_name.c        | 57 +++++++++++++++++++++++++++++++++---------------------
 5 files changed, 50 insertions(+), 31 deletions(-)
-- 
2.3.2.225.gebdc58a
Next: Kenny Lee Sin Cheong
Message 1 of 9 in “[GSoC] revision.c: Allow "-" as stand-in for "@{-1}" everywhere a branch is allowed”
  1. 0/2 [GSoC] revision.c: Allow "-" as stand-in for "@{-1}" everywhere a branch is allowedKenny Lee Sin Cheong, Mar 16, 2015
  2. 1/2 "-" and "@{-1}" on various programsKenny Lee Sin Cheong, Mar 16, 2015
  3. 2/2 Add revision range support on "-" and "@{-1}"Kenny Lee Sin Cheong, Mar 16, 2015
  4. Junio C HamanoMar 16, 2015
  5. Junio C HamanoMar 17, 2015
  6. Kenny Lee Sin CheongMar 17, 2015
  7. Junio C HamanoMar 17, 2015
  8. Kenny Lee Sin CheongMar 24, 2015
  9. Junio C HamanoMar 25, 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.