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

Function strbuf_realpath_forgiving

abspath.c:227–233  ·  view source on GitHub ↗

* Just like strbuf_realpath, but allows an arbitrary number of path * components to be missing. */

Source from the content-addressed store, hash-verified

225 * components to be missing.
226 */
227char *strbuf_realpath_forgiving(struct strbuf *resolved, const char *path,
228 int die_on_error)
229{
230 return strbuf_realpath_1(resolved, path,
231 ((die_on_error ? REALPATH_DIE_ON_ERROR : 0) |
232 REALPATH_MANY_MISSING));
233}
234
235char *real_pathdup(const char *path, int die_on_error)
236{

Callers 7

get_linked_worktreeFunction · 0.85
repair_gitfileFunction · 0.85
repair_worktree_at_pathFunction · 0.85
should_prune_worktreeFunction · 0.85
print_pathFunction · 0.85

Calls 1

strbuf_realpath_1Function · 0.85

Tested by

no test coverage detected