* 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
| 650 | * be sorted. |
| 651 | */ |
| 652 | static 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 |
no test coverage detected