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

Re: Gitk: shortcut to jump to the current HEAD (yellow spot)?

From
DSDirk Süsserott <newsletter@dirk.my1.cc>
Date
Dec 25, 2011, 19:33 UTC
Message-ID
<4EF77A8D.7020907@dirk.my1.cc>
In-Reply-To
<CAOeW2eGCKxYW1TT-HPoSCO0_PsQPX5C-bcHLUy73MTd7=CsqRA@mail.gmail.com>
Am 24.12.2011 05:22 schrieb Martin von Zweigbergk:
Show 11 quoted lines
> 2011/12/23 Dirk Süsserott <newsletter@dirk.my1.cc>:
>>
>> That's because gitk behaves odd (at least to me) when not run from the
>> top-level directory. E.g. the "touching paths" box won't find files in
>> the top dir if you don't prefix them with a slash.
> 
> This should be fixed in c332f44 (gitk: Fix file highlight when run in
> subdirectory, 2011-04-04), which is in the current master and thus, I
> believe, to be released in Git 1.7.9.
> 
> Martin

Ahh, cool. I wouldn't have noticed because I'm so used to my "cd $TOP && gitk". I thought it was by intention because it just behaves like "git log": When run from subdirs it doesn't know about topdir files: Assume README.txt is in the topdir and current dir is some subdir:

$ git log -- README.txt # fails $ git log -- ../README.txt # works

My alias (or function) was just a helper to avoid remembering where I started gitk from.

Cheers,
    Dirk
BTW, Merry X-Mas to you and all others on the list :-)
Previous: Martin von Zweigbergk
Message 7 of 7 in “Gitk: shortcut to jump to the current HEAD (yellow spot)?”
  1. Dirk SüsserottDec 22, 2011
  2. Martin von ZweigbergkDec 22, 2011
  3. Dirk SüsserottDec 22, 2011
  4. Pat ThoytsDec 22, 2011
  5. Dirk SüsserottDec 23, 2011
  6. Martin von ZweigbergkDec 24, 2011
  7. Dirk SüsserottDec 25, 2011

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.