Code

gitk: Select something appropriate on cherry-pick, branch reset and checkout
authorPaul Mackerras <paulus@samba.org>
Tue, 15 Jan 2008 11:16:32 +0000 (22:16 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 15 Jan 2008 11:16:32 +0000 (22:16 +1100)
commit46308ea1da6794bef1a99b0b1c892c46dec40146
tree48a6e4f12eefa26a9e7ea858a6c6cb93e95951b0
parent3e76608d39302add89a8ba4a259eb1bf2583dc10
gitk: Select something appropriate on cherry-pick, branch reset and checkout

This makes gitk select the new commit when cherry-picking, and select
the new checked-out head when resetting or checking out a branch.
This feels more natural because the user is usually more interested
in that commit now than whatever was selected before.

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