]> git.ipfire.org Git - thirdparty/git.git/commit - connect.c
git_connect(): factor out SSH variant handling
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 1 Feb 2017 12:01:10 +0000 (13:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Feb 2017 18:57:00 +0000 (10:57 -0800)
commite2824e47e792ad1b2862108bc78af4d3468633fb
treed61c163bbb8fb2e51ed4a12d859339c8e1b43ad5
parent6a4f3a9edc25ab091bbe07b537456019fd20e958
git_connect(): factor out SSH variant handling

We handle plink and tortoiseplink as OpenSSH replacements, by passing
the correct command-line options when detecting that they are used.

To let users override that auto-detection (in case Git gets it wrong),
we need to introduce new code to that end.

In preparation for this code, let's factor out the SSH variant handling
into its own function, handle_ssh_variant().

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c