Commits


create references to base commits of got worktrees


introduce got_ref_list_free() and use it in got and tog


add got_ref_delete(); only loose refs supported for now


fix off-by-one in fwrite() check in got_ref_write()


make got_ref_write() work for refs which do not exist yet


fix path construction with empty subdir in open_ref()


implement got_ref_write()


validate ref names


introduce got_ref_alloc()


check for errors from fclose()


make got_ref_open() search on-disk refs before packed-refs


fix insert_ref() to provide ordering similar to path lists


append to tail of reflist, not to the head of the list


make got_ref_list() return a sorted list


on-disk refs must take precedence over packed-refs


internally represent a non-existent ref as NULL rather than as error


include non-packed refs in results from got_ref_list()


add missing error checks in got_ref_list()


improve error codes in lib/reference.c


make 'got log' show packed refs and HEAD ref (pther refs not shown yet)


add potentially useful helpers for tag objects and refs


actually return once parse_packed_ref_line() succeeds


parse packed refs in a single pass over packed-refs file


optimize code path for lookup of well-known refs


handle absolute refs being passed to open_packed_ref()