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

Function find_reference_location

refs/packed-backend.c:652–656  ·  view source on GitHub ↗

* Find the place in `snapshot->buf` where the start of the record for * `refname` starts. If `mustexist` is true and the reference doesn't * exist, then return NULL. If `mustexist` is false and the reference * doesn't exist, then return the point where that reference would be * inserted, or `snapshot->eof` (which might be NULL) if it would be * inserted at the end of the file. In the latter m

Source from the content-addressed store, hash-verified

650 * be sorted.
651 */
652static const char *find_reference_location(struct snapshot *snapshot,
653 const char *refname, int mustexist)
654{
655 return find_reference_location_1(snapshot, refname, mustexist, 1);
656}
657
658/*
659 * Find the place in `snapshot->buf` after the end of the record for

Callers 3

packed_read_raw_refFunction · 0.85
packed_ref_iterator_seekFunction · 0.85

Calls 1

Tested by

no test coverage detected