Is there a way to propagate a payload to a smart subtransport (like ssh) on registration?
static git_smart_subtransport_definition ssh_wintunnel_subtransport_definition = { git_smart_subtransport_ssh_wintunnel, 0 };
git_transport_register("ssh://", 2, git_transport_smart, &ssh_wintunnel_subtransport_definition);
Is there a way to propagate a payload to a smart subtransport (like ssh) on registration?
Right now I do it the following way (https://github.com/csware/TortoiseGit/blob/libgit2-plink-working2/src/libgit2/ssh-wintunnel.c):
As you can see, the payload of the
git_transport_registerfunction is used for the subtransport definition.