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

Function find_reference_location_end

refs/packed-backend.c:666–671  ·  view source on GitHub ↗

* Find the place in `snapshot->buf` after the end of the record for * `refname`. In other words, find the location of first thing *after* * `refname`. * * Other semantics are identical to the ones in * `find_reference_location()`. */

Source from the content-addressed store, hash-verified

664 * `find_reference_location()`.
665 */
666static const char *find_reference_location_end(struct snapshot *snapshot,
667 const char *refname,
668 int mustexist)
669{
670 return find_reference_location_1(snapshot, refname, mustexist, 0);
671}
672
673/*
674 * Create a newly-allocated `snapshot` of the `packed-refs` file in

Callers 1

Calls 1

Tested by

no test coverage detected