Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/git/git
/ strbuf_strip_file_from_path
Function
strbuf_strip_file_from_path
strbuf.c:1130–1134 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1128
}
1129
1130
void strbuf_strip_file_from_path(struct strbuf *sb)
1131
{
1132
const char *path_sep = find_last_dir_sep(sb->buf);
1133
strbuf_setlen(sb, path_sep ? path_sep - sb->buf + 1 : 0);
1134
}
Callers
1
bundle_uri_parse_config_format
Function · 0.85
Calls
1
strbuf_setlen
Function · 0.85
Tested by
no test coverage detected