KiCad PCB EDA Suite
Loading...
Searching...
No Matches
kigit_remote_url.h File Reference
#include <import_export.h>
#include <wx/string.h>

Go to the source code of this file.

Classes

struct  KIGIT::REMOTE_URL
 A transport address with any embedded credentials extracted. More...
 

Namespaces

namespace  KIGIT
 

Enumerations

enum class  KIGIT::GIT_CONN_TYPE { KIGIT::GIT_CONN_HTTPS = 0 , KIGIT::GIT_CONN_SSH , KIGIT::GIT_CONN_LOCAL , KIGIT::GIT_CONN_LAST }
 

Functions

REMOTE_URL KIGIT::ParseRemoteURL (const wxString &aURL)
 Split a remote address the way libgit2 reads it, so a host key is checked against the host it dials.
 
wxString KIGIT::CredentialServer (const wxString &aUrl)
 The host and port aUrl reaches, as host[:port] without the scheme's default port.
 
wxString KIGIT::CredentialRealm (const wxString &aUrl)
 The server an HTTP(S) credential for aUrl serves, as scheme://host[:port] with no user, path or default port, the key git's own credential helpers use by default.
 
wxString KIGIT::StripEmbeddedUserinfo (const wxString &aText)
 Remove the user and password from every URL quoted in a message, since the remote's can carry a password.
 
wxString KIGIT::DecodeServerText (const char *aData, size_t aLength)
 Bytes a server sent, as UTF-8 or, when they are not valid UTF-8, one character for each byte.
 
wxString KIGIT::PrintableServerText (const wxString &aText)
 Text a server sent, made safe to show by removing terminal escapes, control and bidi characters, and URL userinfo.