gitk: Select head of current branch by default
authorPaul Mackerras <paulus@samba.org>
Sun, 13 Jan 2008 06:26:30 +0000 (17:26 +1100)
committerPaul Mackerras <paulus@samba.org>
Sun, 13 Jan 2008 06:26:30 +0000 (17:26 +1100)
commit3e76608d39302add89a8ba4a259eb1bf2583dc10
treed4059d8d1c17618a2b890a40ae3a30af801b66eb
parent17529cf9bc50e8b2bc0ea930a966b8b47056853e
gitk: Select head of current branch by default

Instead of selecting the first commit that appears, this makes gitk
select the currently checked out head, if the user hasn't explicitly
selected some other commit by the time it appears.  If the head hasn't
appeared by the time the graph is complete, then we select the first
real commit.

This applies both for graph updates and when the graph is being read
in initially.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk