diff options
author | Michael Rappazzo <rappazzo@gmail.com> | 2015-05-07 22:29:20 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2015-05-17 10:55:24 +1000 |
commit | 427cf16985c77b3c185b06bc8d6d3278ce177181 (patch) | |
tree | d6b8d9a34dc151dc55df12221ac365169a48ea3d | |
parent | gitk: Remove mc parameter from proc show_error (diff) | |
download | tgif-427cf16985c77b3c185b06bc8d6d3278ce177181.tar.xz |
gitk: Add mouse right-click options to copy path and branch name
This adds menu entries to two of the right-click menus:
- 'Copy path' in the file list
- 'Copy branch name' on a branch in the commit list
Signed-off-by: Michael Rappazzo <rappazzo@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-x | gitk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2645,6 +2645,7 @@ proc makewindow {} { makemenu $headctxmenu { {mc "Check out this branch" command cobranch} {mc "Remove this branch" command rmbranch} + {mc "Copy branch name" command {clipboard clear; clipboard append $headmenuhead}} } $headctxmenu configure -tearoff 0 @@ -2655,6 +2656,7 @@ proc makewindow {} { {mc "Highlight this only" command {flist_hl 1}} {mc "External diff" command {external_diff}} {mc "Blame parent commit" command {external_blame 1}} + {mc "Copy path" command {clipboard clear; clipboard append $flist_menu_file}} } $flist_menu configure -tearoff 0 |