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

Re: [PATCH v2] gitk: parse arbitrary commit-ish in SHA1 field

From
Paul Mackerras <paulus@samba.org>
Date
Aug 13, 2009, 11:54 UTC
Message-ID
<19075.65280.288895.139503@cargo.ozlabs.ibm.com>
In-Reply-To
<c3c4afa39354da6df5a0b17ee43eb4e8dfcfb099.1250148240.git.trast@student.ethz.ch>
Thomas Rast writes:
Show 14 quoted lines
> We only accepted either SHA1s or heads/tags that have been read.  This
> meant the user could not, e.g., enter HEAD to go back to the current
> commit.
> 
> Add code to call out to git rev-parse --verify with the string entered
> if all other methods of interpreting it failed.  (git-rev-parse alone
> is not enough as we really want a single revision.)
> 
> The error paths change slighly, because we now know from the rev-parse
> invocation whether the expression was valid at all.  The previous
> "unknown" path is now only triggered if the revision does exist, but
> is not in the current view display.
> 
> Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Thanks, applied.
Paul.
Previous: Thomas Rast
Message 4 of 4 in “gitk: parse arbitrary commit-ish in SHA1 field”
  1. gitk: parse arbitrary commit-ish in SHA1 fieldThomas Rast, Aug 8, 2009
  2. Junio C HamanoAug 11, 2009
  3. gitk: parse arbitrary commit-ish in SHA1 fieldThomas Rast, Aug 13, 2009
  4. Paul MackerrasAug 13, 2009

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.