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

Function chomp_trailing_dir_sep

path.c:1275–1280  ·  view source on GitHub ↗

strip arbitrary amount of directory separators at end of path */

Source from the content-addressed store, hash-verified

1273
1274/* strip arbitrary amount of directory separators at end of path */
1275static inline int chomp_trailing_dir_sep(const char *path, int len)
1276{
1277 while (len && is_dir_sep(path[len - 1]))
1278 len--;
1279 return len;
1280}
1281
1282/*
1283 * If path ends with suffix (complete path components), returns the offset of

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected