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

Re: gitk dev branch: F5 gives error after commit

From
Paul Mackerras <paulus@samba.org>
Date
Jan 7, 2008, 21:35 UTC
Message-ID
<18306.39687.333117.276550@cargo.ozlabs.ibm.com>
In-Reply-To
<478258B6.20006@viscovery.net>
Johannes Sixt writes:
Show 12 quoted lines
> I use the dev branch of gitk (on Windows), commit 476ca63 (gitk: Index
> [fnvr]highlights by id rather than row).
> 
> 1. Start it with:
> 
>     gitk --all -300
> 
> 2. Make a commit.
> 3. Hit F5. Here I see the error message:
> 
>    Error reading commits:
>    fatal: bad revision '^-300'

This happens because I naively thought 'git rev-parse --revs-only' would only give me SHA1 IDs. But in any case gitk (on the dev branch) doesn't really do anything much to handle commit selection flags that can't be turned into SHA1 IDs (possibly negated).

Thanks for testing.  I'll fix it.
Paul.
Previous: Marco Costalba
Message 3 of 3 in “gitk dev branch: F5 gives error after commit”
  1. Johannes SixtJan 7, 2008
  2. Marco CostalbaJan 7, 2008
  3. Paul MackerrasJan 7, 2008

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.