{"thread":{"id":"16240","subject":"[PATCH (GIT-GUI)] git-gui: Add the Show SSH Key item to the clone dialog.","startedAt":"2008-11-09T15:51:16Z","lastAt":"2008-11-09T15:51:16Z","messageCount":1,"participants":["Alexander Gavrilov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"95265","messageId":"200811091851.16208.angavrilov@gmail.com","threadId":"16240","inReplyTo":null,"subject":"[PATCH (GIT-GUI)] git-gui: Add the Show SSH Key item to the clone dialog.","fromName":"Alexander Gavrilov","fromEmail":"angavrilov@gmail.com","sentAt":"2008-11-09T15:51:16Z","receivedAt":"2008-11-09T15:51:16Z","isPatch":true,"sender":{"key":"angavrilov@gmail.com","avatar":"https://avatars.githubusercontent.com/u/42666?v=4"},"body":"The user might need to see the key before cloning a repository.\nThis patch makes the relevant menu item available in the Select\nRepository/Clone dialog.\n\nSigned-off-by: Alexander Gavrilov <angavrilov@gmail.com>\n---\n git-gui.sh                |   20 +++++++++++---------\n lib/choose_repository.tcl |    6 ++++++\n 2 files changed, 17 insertions(+), 9 deletions(-)\n\ndiff --git a/git-gui.sh b/git-gui.sh\nindex 12b496b..cf9ef6e 100755\n--- a/git-gui.sh\n+++ b/git-gui.sh\n@@ -999,6 +999,17 @@ citool {\n \n ######################################################################\n ##\n+## execution environment\n+\n+set have_tk85 [expr {[package vcompare $tk_version \"8.5\"] >= 0}]\n+\n+# Suggest our implementation of askpass, if none is set\n+if {![info exists env(SSH_ASKPASS)]} {\n+\tset env(SSH_ASKPASS) [gitexec git-gui--askpass]\n+}\n+\n+######################################################################\n+##\n ## repository setup\n \n set picked 0\n@@ -1073,15 +1084,6 @@ set selected_commit_type new\n set nullid \"0000000000000000000000000000000000000000\"\n set nullid2 \"0000000000000000000000000000000000000001\"\n \n-set have_tk85 [expr {[package vcompare $tk_version \"8.5\"] >= 0}]\n-\n-######################################################################\n-\n-# Suggest our implementation of askpass, if none is set\n-if {![info exists env(SSH_ASKPASS)]} {\n-\tset env(SSH_ASKPASS) [gitexec git-gui--askpass]\n-}\n-\n ######################################################################\n ##\n ## task management\ndiff --git a/lib/choose_repository.tcl b/lib/choose_repository.tcl\nindex 9091316..f9ff62a 100644\n--- a/lib/choose_repository.tcl\n+++ b/lib/choose_repository.tcl\n@@ -43,12 +43,18 @@ constructor pick {} {\n \t\t\t$w.mbar.apple add command \\\n \t\t\t\t-label [mc \"About %s\" [appname]] \\\n \t\t\t\t-command do_about\n+\t\t\t$w.mbar.apple add command \\\n+\t\t\t\t-label [mc \"Show SSH Key\"] \\\n+\t\t\t\t-command do_ssh_key\n \t\t} else {\n \t\t\t$w.mbar add cascade -label [mc Help] -menu $w.mbar.help\n \t\t\tmenu $w.mbar.help\n \t\t\t$w.mbar.help add command \\\n \t\t\t\t-label [mc \"About %s\" [appname]] \\\n \t\t\t\t-command do_about\n+\t\t\t$w.mbar.help add command \\\n+\t\t\t\t-label [mc \"Show SSH Key\"] \\\n+\t\t\t\t-command do_ssh_key\n \t\t}\n \n \t\twm protocol $top WM_DELETE_WINDOW exit\n-- \n1.6.0.3.15.gb8d36\n"}]}