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

Re: [PATCH] t3400 (rebase): add failing test for a peculiar rev spec

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Apr 19, 2013, 07:43 UTC
Message-ID
<CALkWK0=RDCCSxOJ2TU4=tniSRTg9VJohJ8Pf6uN9E=fd3jg=_Q@mail.gmail.com>
In-Reply-To
<7vmwsv94jo.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 11 quoted lines
>         peel_committish () {
>                 case "$1" in
>                 :/*)
>                         peeltmp=$(git rev-parse --verify "$1") &&
>                         git rev-parse --verify "$peeltmp^0"
>                         ;;
>                 *)
>                         git rev-parse --verify "$1^0"
>                         ;;
>                 esac
>         }

Thanks. Yeah, that's the obvious "hack solution": special handling for refspecs of the kind :/text. Will write a patch for it soon (currently struggling to complete rebase.autostash). In the meantime, please queue this patch.

I'm more interested in knowing what you think of my first point: is :/text fundamentally broken, as it can't be combined with other operators like the other rev specs can? If so, how do you think we should fix it?

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “t3400 (rebase): add failing test for a peculiar rev spec”
  1. t3400 (rebase): add failing test for a peculiar rev specRamkumar Ramachandra, Apr 18, 2013
  2. Junio C HamanoApr 18, 2013
  3. Ramkumar RamachandraApr 19, 2013
  4. Junio C HamanoApr 19, 2013
  5. Junio C HamanoApr 19, 2013
  6. Junio C HamanoApr 19, 2013

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.