Refactor SSH key loading so we don't duplicate keys
commitebcae3361515f6fee4763b59584a0cb423c59161
authorShawn O. Pearce <spearce@spearce.org>
Fri, 15 Aug 2008 17:35:04 +0000 (15 10:35 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 19 Aug 2008 21:06:46 +0000 (19 23:06 +0200)
tree419149eaa70344383276c7ceae1708f93a0a8637
parent06d7d84ad55da0b00f6d3f2e615f991f77a6b5a6
Refactor SSH key loading so we don't duplicate keys

We only want to read each private key once, so we cache the
names of the keys we have processed before, adding keys which
we have not yet seen.  This allows us to alter add keys on
the fly and avoid duplication.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/transport/DefaultSshSessionFactory.java