Commits


fix dirname() usage errors around got_path_mkdir()


fix broken error checking in got_ref_write()


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