summaryrefslogtreecommitdiff
path: root/src/netops.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2020-03-31 15:42:14 +0200
committerGitHub <noreply@github.com>2020-03-31 15:42:14 +0200
commit7a2b969d559b83798d93728f24d1729ffc97b717 (patch)
treec4c6c9c0710c47a1da978d625ff2cf066eeff4c4 /src/netops.h
parent1e5b139509073e9209c34466de10d51baa821df5 (diff)
parentbb52d9fa598ce74f82c4294e0aa98b4bdbfdbc7e (diff)
downloadlibgit2-maint/v0.28.tar.gz
Merge pull request #5473 from libgit2/ethomson/v0.28.5v0.28.5maint/v0.28
fetchhead: strip credentials from remote URL
Diffstat (limited to 'src/netops.h')
-rw-r--r--src/netops.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/netops.h b/src/netops.h
index f376bd911..fcdbccf0d 100644
--- a/src/netops.h
+++ b/src/netops.h
@@ -84,6 +84,9 @@ int gitno_connection_data_from_url(
const char *url,
const char *service_suffix);
+/* Format a URL into a buffer */
+int gitno_connection_data_fmt(git_buf *buf, gitno_connection_data *data);
+
/* This frees all the pointers IN the struct, but not the struct itself. */
void gitno_connection_data_free_ptrs(gitno_connection_data *data);