MCPcopy Create free account
hub / github.com/git/git / strip_dir_trailing_slashes

Function strip_dir_trailing_slashes

dir.c:3386–3393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3384}
3385
3386void strip_dir_trailing_slashes(char *dir)
3387{
3388 char *end = dir + strlen(dir);
3389
3390 while (dir < end - 1 && is_dir_sep(end[-1]))
3391 end--;
3392 *end = '\0';
3393}
3394
3395static int remove_dir_recurse(struct strbuf *path, int flag, int *kept_up)
3396{

Callers 3

skip_submoduleFunction · 0.85
cmd_cloneFunction · 0.85
module_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected