summaryrefslogtreecommitdiff
path: root/src/transports/git.c
diff options
context:
space:
mode:
authorLeo Yang <lyang@topologyinc.com>2015-03-17 12:49:33 -0400
committerLeo Yang <lyang@topologyinc.com>2015-03-18 13:15:21 -0400
commit142e5379ca850b718c9775cab5e30504503defd0 (patch)
treeb8f461dcdfce90cda06b57276a3706f4b1cfc035 /src/transports/git.c
parentbdf0e734506b5b18234d48a0e7c6995aeda30b9d (diff)
downloadlibgit2-142e5379ca850b718c9775cab5e30504503defd0.tar.gz
Add a custom param to git_smart_subtransport_definition
The smart transport has already take the payload param. For the sub transport a payload param is useful for the implementer.
Diffstat (limited to 'src/transports/git.c')
-rw-r--r--src/transports/git.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transports/git.c b/src/transports/git.c
index 5ec98d867..ea95ed132 100644
--- a/src/transports/git.c
+++ b/src/transports/git.c
@@ -340,10 +340,12 @@ static void _git_free(git_smart_subtransport *subtransport)
git__free(t);
}
-int git_smart_subtransport_git(git_smart_subtransport **out, git_transport *owner)
+int git_smart_subtransport_git(git_smart_subtransport **out, git_transport *owner, void *param)
{
git_subtransport *t;
+ GIT_UNUSED(param);
+
if (!out)
return -1;