Merge branch 'bb/ssh-key-files' of git-gui into bb/git-gui-ssh-key-files
authorJunio C Hamano <gitster@pobox.com>
Fri, 2 Mar 2018 23:17:35 +0000 (15:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Mar 2018 23:17:35 +0000 (15:17 -0800)
* 'bb/ssh-key-files' of git-gui:
git-gui: search for all current SSH key types

git-gui/lib/sshkey.tcl
index aa6457bbb5f1b0d64d6e04f27394912483250117..589ff8f78aba8273651b33005c6f6abd1db2fa27 100644 (file)
@@ -2,7 +2,10 @@
 # Copyright (C) 2006, 2007 Shawn Pearce
 
 proc find_ssh_key {} {
-       foreach name {~/.ssh/id_dsa.pub ~/.ssh/id_rsa.pub ~/.ssh/identity.pub} {
+       foreach name {
+               ~/.ssh/id_dsa.pub ~/.ssh/id_ecdsa.pub ~/.ssh/id_ed25519.pub
+               ~/.ssh/id_rsa.pub ~/.ssh/identity.pub
+       } {
                if {[file exists $name]} {
                        set fh    [open $name r]
                        set cont  [read $fh]