{"thread":{"id":"11509","subject":"gitk dev branch: F5 gives error after commit","startedAt":"2008-01-07T16:52:06Z","lastAt":"2008-01-07T21:35:03Z","messageCount":3,"participants":["Johannes Sixt","Marco Costalba","Paul Mackerras"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"64655","messageId":"478258B6.20006@viscovery.net","threadId":"11509","inReplyTo":null,"subject":"gitk dev branch: F5 gives error after commit","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2008-01-07T16:52:06Z","receivedAt":"2008-01-07T16:52:06Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"I use the dev branch of gitk (on Windows), commit 476ca63 (gitk: Index\n[fnvr]highlights by id rather than row).\n\n1. Start it with:\n\n    gitk --all -300\n\n2. Make a commit.\n3. Hit F5. Here I see the error message:\n\n   Error reading commits:\n   fatal: bad revision '^-300'\n\nAt this time the label of the current branch is already gone from the\ncommit list. There are no other changes made in the display.\n\nHitting F5 again does nothing. I have to create a new view to get an\nupdated display.\n\nAny help is appreciated. Thanks,\n-- Hannes\n"},{"id":"64657","messageId":"e5bfff550801071019q50f62800t866d4570c7847731@mail.gmail.com","threadId":"11509","inReplyTo":"478258B6.20006@viscovery.net","subject":"Re: gitk dev branch: F5 gives error after commit","fromName":"Marco Costalba","fromEmail":"mcostalba@gmail.com","sentAt":"2008-01-07T18:19:23Z","receivedAt":"2008-01-07T18:19:23Z","isPatch":false,"sender":{"key":"mcostalba@gmail.com","avatar":null},"body":"On Jan 7, 2008 5:52 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:\n> I use the dev branch of gitk (on Windows), commit 476ca63 (gitk: Index\n> [fnvr]highlights by id rather than row).\n>\n> 1. Start it with:\n>\n>     gitk --all -300\n>\n> 2. Make a commit.\n> 3. Hit F5. Here I see the error message:\n>\n>    Error reading commits:\n>    fatal: bad revision '^-300'\n>\n\nWindows command line does not handles the  ^ symbol.\n\nTry open a console with cmd.exe and type\n\ngit log HEAD^\n\n\nMarco\n"},{"id":"64672","messageId":"18306.39687.333117.276550@cargo.ozlabs.ibm.com","threadId":"11509","inReplyTo":"478258B6.20006@viscovery.net","subject":"Re: gitk dev branch: F5 gives error after commit","fromName":"Paul Mackerras","fromEmail":"paulus@samba.org","sentAt":"2008-01-07T21:35:03Z","receivedAt":"2008-01-07T21:35:03Z","isPatch":false,"sender":{"key":"paulus@samba.org","avatar":"https://avatars.githubusercontent.com/u/1606439?v=4"},"body":"Johannes Sixt writes:\n\n> I use the dev branch of gitk (on Windows), commit 476ca63 (gitk: Index\n> [fnvr]highlights by id rather than row).\n> \n> 1. Start it with:\n> \n>     gitk --all -300\n> \n> 2. Make a commit.\n> 3. Hit F5. Here I see the error message:\n> \n>    Error reading commits:\n>    fatal: bad revision '^-300'\n\nThis happens because I naively thought 'git rev-parse --revs-only'\nwould only give me SHA1 IDs.  But in any case gitk (on the dev branch)\ndoesn't really do anything much to handle commit selection flags that\ncan't be turned into SHA1 IDs (possibly negated).\n\nThanks for testing.  I'll fix it.\n\nPaul.\n"}]}