git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitk: Add mouse right-click options

From
Michael Rappazzo <rappazzo@gmail.com>
Date
May 8, 2015, 02:29 UTC
Message-ID
<1431052160-82758-2-git-send-email-rappazzo@gmail.com>
In-Reply-To
<1431052160-82758-1-git-send-email-rappazzo@gmail.com>
 - 'Copy path' in the file list
 - 'Copy branch name' on a branch in the commit list
Signed-off-by: Michael Rappazzo <rappazzo@gmail.com>
---
 gitk-git/gitk | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/gitk-git/gitk b/gitk-git/gitk
index 9a2daf3..6d86820 100755
--- a/gitk-git/gitk
+++ b/gitk-git/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
 
-- 
2.4.0
Previous: Michael RappazzoNext: Paul Mackerras
Message 2 of 3 in “gitk: Add mouse right-click options”
  1. gitk: Add mouse right-click optionsMichael Rappazzo, May 8, 2015
  2. gitk: Add mouse right-click optionsMichael Rappazzo, May 8, 2015
  3. Paul MackerrasMay 17, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.