{"thread":{"id":"39271","subject":"[PATCH] gitk: Add mouse right-click options","startedAt":"2015-05-08T02:29:19Z","lastAt":"2015-05-17T00:56:57Z","messageCount":3,"participants":["Michael Rappazzo","Paul Mackerras"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"260791","messageId":"1431052160-82758-1-git-send-email-rappazzo@gmail.com","threadId":"39271","inReplyTo":null,"subject":"[PATCH] gitk: Add mouse right-click options","fromName":"Michael Rappazzo","fromEmail":"rappazzo@gmail.com","sentAt":"2015-05-08T02:29:19Z","receivedAt":"2015-05-08T02:29:19Z","isPatch":true,"sender":{"key":"rappazzo@gmail.com","avatar":"https://avatars.githubusercontent.com/u/525287?v=4"},"body":"I work in a large and deep codebase, and found it useful to have these additional features in gitk.  \n\nFirst, in the commit list, a right click on a branch name will add an option ('Copy branch name') to put that name on the system clipboard.\n\nSecond, in the file list of a commit, a right click on a file will add an option ('Copy path') to put the file path on the system clipboard.\n\n\nMichael Rappazzo (1):\n  gitk: Add mouse right-click options\n\n gitk-git/gitk | 2 ++\n 1 file changed, 2 insertions(+)\n\n-- \n2.4.0\n"},{"id":"260792","messageId":"1431052160-82758-2-git-send-email-rappazzo@gmail.com","threadId":"39271","inReplyTo":"1431052160-82758-1-git-send-email-rappazzo@gmail.com","subject":"[PATCH] gitk: Add mouse right-click options","fromName":"Michael Rappazzo","fromEmail":"rappazzo@gmail.com","sentAt":"2015-05-08T02:29:20Z","receivedAt":"2015-05-08T02:29:20Z","isPatch":true,"sender":{"key":"rappazzo@gmail.com","avatar":"https://avatars.githubusercontent.com/u/525287?v=4"},"body":" - 'Copy path' in the file list\n - 'Copy branch name' on a branch in the commit list\n\nSigned-off-by: Michael Rappazzo <rappazzo@gmail.com>\n---\n gitk-git/gitk | 2 ++\n 1 file changed, 2 insertions(+)\n\ndiff --git a/gitk-git/gitk b/gitk-git/gitk\nindex 9a2daf3..6d86820 100755\n--- a/gitk-git/gitk\n+++ b/gitk-git/gitk\n@@ -2645,6 +2645,7 @@ proc makewindow {} {\n     makemenu $headctxmenu {\n \t{mc \"Check out this branch\" command cobranch}\n \t{mc \"Remove this branch\" command rmbranch}\n+\t{mc \"Copy branch name\" command {clipboard clear; clipboard append $headmenuhead}}\n     }\n     $headctxmenu configure -tearoff 0\n \n@@ -2655,6 +2656,7 @@ proc makewindow {} {\n \t{mc \"Highlight this only\" command {flist_hl 1}}\n \t{mc \"External diff\" command {external_diff}}\n \t{mc \"Blame parent commit\" command {external_blame 1}}\n+\t{mc \"Copy path\" command {clipboard clear; clipboard append $flist_menu_file}}\n     }\n     $flist_menu configure -tearoff 0\n \n-- \n2.4.0\n"},{"id":"261400","messageId":"20150517005657.GB21039@iris.ozlabs.ibm.com","threadId":"39271","inReplyTo":"1431052160-82758-1-git-send-email-rappazzo@gmail.com","subject":"Re: [PATCH] gitk: Add mouse right-click options","fromName":"Paul Mackerras","fromEmail":"paulus@samba.org","sentAt":"2015-05-17T00:56:57Z","receivedAt":"2015-05-17T00:56:57Z","isPatch":true,"sender":{"key":"paulus@samba.org","avatar":"https://avatars.githubusercontent.com/u/1606439?v=4"},"body":"On Thu, May 07, 2015 at 10:29:19PM -0400, Michael Rappazzo wrote:\n> I work in a large and deep codebase, and found it useful to have these additional features in gitk.  \n> \n> First, in the commit list, a right click on a branch name will add an option ('Copy branch name') to put that name on the system clipboard.\n> \n> Second, in the file list of a commit, a right click on a file will add an option ('Copy path') to put the file path on the system clipboard.\n\nThanks, applied.\n\nPaul.\n"}]}