Commits


implement support for packed refs in 'got ref -d'


fix uninitialized variable in insert_ref()


use sizeof instead of SHA1_DIGEST_LENGTH in memcpy


better malloc size idiom in insert_ref()


move assignment closer to check in parse_ref_file()


properly handle duplicates when calling insert_ref()


don't leak 'new' in insert_ref()


better fparseln error handling and memory leak fix in got_ref_list()


better foarseln() error handling in open_packed_ref()


plug memleak in alloc_ref()


plug memleak in got_ref_resolve()


set an is_packed flag on refs parsed from packed-refs file


plug two memory leaks when refs get closed


introduce got_path_dirname()


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()