MCPcopy Index your code
hub / github.com/git/git / host_end

Function host_end

connect.c:718–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718static char *host_end(char **hoststart, int removebrackets)
719{
720 char *host = *hoststart;
721 char *end;
722 char *start = strstr(host, "@[");
723 if (start)
724 start++; /* Jump over '@' */
725 else
726 start = host;
727 if (start[0] == '[') {
728 end = strchr(start + 1, ']');
729 if (end) {
730 if (removebrackets) {
731 *end = 0;
732 memmove(start, start + 1, end - start);
733 end++;
734 }
735 } else
736 end = host;
737 } else
738 end = host;
739 return end;
740}
741
742#define STR_(s) # s
743#define STR(s) STR_(s)

Callers 2

get_host_and_portFunction · 0.85
parse_connect_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected