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

Function is_rr_cache_dirname

rerere.c:1222–1227  ·  view source on GitHub ↗

Does the basename in "path" look plausibly like an rr-cache entry? */

Source from the content-addressed store, hash-verified

1220
1221/* Does the basename in "path" look plausibly like an rr-cache entry? */
1222static int is_rr_cache_dirname(const char *path)
1223{
1224 struct object_id oid;
1225 const char *end;
1226 return !parse_oid_hex(path, &oid, &end) && !*end;
1227}
1228
1229void rerere_gc(struct repository *r, struct string_list *rr)
1230{

Callers 1

rerere_gcFunction · 0.85

Calls 1

parse_oid_hexFunction · 0.85

Tested by

no test coverage detected