Re: Gitk: shortcut to jump to the current HEAD (yellow spot)?
- From
- Dirk 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,
DirkBTW, Merry X-Mas to you and all others on the list :-)