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

Function strbuf_trim_trailing_dir_sep

strbuf.c:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void strbuf_trim_trailing_dir_sep(struct strbuf *sb)
131{
132 while (sb->len > 0 && is_dir_sep((unsigned char)sb->buf[sb->len - 1]))
133 sb->len--;
134 sb->buf[sb->len] = '\0';
135}
136
137void strbuf_trim_trailing_newline(struct strbuf *sb)
138{

Callers 5

get_git_namespaceFunction · 0.85
move_worktreeFunction · 0.85
strbuf_to_cone_patternFunction · 0.85
run_dir_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected