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

Function needs_quote

http.c:1847–1857  ·  view source on GitHub ↗

Helpers for modifying and creating URLs */

Source from the content-addressed store, hash-verified

1845
1846/* Helpers for modifying and creating URLs */
1847static inline int needs_quote(int ch)
1848{
1849 if (((ch >= 'A') && (ch <= 'Z'))
1850 || ((ch >= 'a') && (ch <= 'z'))
1851 || ((ch >= '0') && (ch <= '9'))
1852 || (ch == '/')
1853 || (ch == '-')
1854 || (ch == '.'))
1855 return 0;
1856 return 1;
1857}
1858
1859static char *quote_ref_url(const char *base, const char *ref)
1860{

Callers 1

quote_ref_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected