Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitk: Replace SHA1 entry field on keyboard paste
author
Ilya Bobyr
<ilya.bobyr@gmail.com>
Thu, 20 Mar 2014 08:58:51 +0000
(
01:58
-0700)
committer
Paul Mackerras
<paulus@samba.org>
Sun, 15 Jun 2014 01:35:50 +0000
(11:35 +1000)
We already replace old SHA with the clipboard content for the mouse
paste event. It seems reasonable to do the same when pasting from
keyboard.
Signed-off-by: Ilya Bobyr <ilya.bobyr@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
c4a0483
)
diff --git
a/gitk
b/gitk
index 90764e8948f1f95aaddfb381664ecede328bc863..2f58bcfbdda4deccec8d1750f38fff2c27ab109a 100755
(executable)
--- a/
gitk
+++ b/
gitk
@@
-2585,6
+2585,7
@@
proc makewindow {} {
bind $fstring <Key-Return> {dofind 1 1}
bind $sha1entry <Key-Return> {gotocommit; break}
bind $sha1entry <<PasteSelection>> clearsha1
+ bind $sha1entry <<Paste>> clearsha1
bind $cflist <1> {sel_flist %W %x %y; break}
bind $cflist <B1-Motion> {sel_flist %W %x %y; break}
bind $cflist <ButtonRelease-1> {treeclick %W %x %y}