From: Michael Rappazzo Date: Fri, 8 May 2015 02:29:20 +0000 (-0400) Subject: gitk: Add mouse right-click options to copy path and branch name X-Git-Tag: v2.6.0-rc2~1^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=427cf16985c77b3c185b06bc8d6d3278ce177181;p=thirdparty%2Fgit.git 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 Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index 78baeb57cd..dc1af41bb7 100755 --- a/gitk +++ b/gitk @@ -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