5 years ago 598a8b9185 Stefan Sperling
implement support for packed refs in 'got ref -d'
5 years ago 6249107b89 Stefan Sperling
fix uninitialized variable in insert_ref()
5 years ago 80d5fc1f55 Stefan Sperling
use sizeof instead of SHA1_DIGEST_LENGTH in memcpy
5 years ago 6fdbf7b046 Stefan Sperling
better malloc size idiom in insert_ref()
5 years ago c0a1c01633 Stefan Sperling
move assignment closer to check in parse_ref_file()
5 years ago 505287bea1 Stefan Sperling
properly handle duplicates when calling insert_ref()
5 years ago 27a1ed032f Stefan Sperling
don't leak 'new' in insert_ref()
5 years ago 0bb4abaee2 Stefan Sperling
better fparseln error handling and memory leak fix in got_ref_list()
5 years ago 7ab0422aff Stefan Sperling
better foarseln() error handling in open_packed_ref()
5 years ago c980e47036 Stefan Sperling
plug memleak in alloc_ref()
5 years ago c53671d016 Stefan Sperling
plug memleak in got_ref_resolve()
5 years ago f9267c9ac1 Stefan Sperling
set an is_packed flag on refs parsed from packed-refs file
5 years ago e09d28b120 Stefan Sperling
plug two memory leaks when refs get closed
5 years ago d1667f0dbb Stefan Sperling
introduce got_path_dirname()
5 years ago 5e1c9f2326 Stefan Sperling
fix dirname() usage errors around got_path_mkdir()
5 years ago 49c7094fd1 Stefan Sperling
fix broken error checking in got_ref_write()
5 years ago 0cd1c46a9e Stefan Sperling
create references to base commits of got worktrees
5 years ago e2e879a086 Stefan Sperling
introduce got_ref_list_free() and use it in got and tog
5 years ago 2d2e137815 Stefan Sperling
add got_ref_delete(); only loose refs supported for now
5 years ago 8fa2f09641 Stefan Sperling
fix off-by-one in fwrite() check in got_ref_write()
5 years ago 0fd469ce93 Stefan Sperling
make got_ref_write() work for refs which do not exist yet
5 years ago 58908ed09b Stefan Sperling
fix path construction with empty subdir in open_ref()
5 years ago 9e672c7443 Stefan Sperling
implement got_ref_write()
5 years ago f77a24b036 Stefan Sperling
validate ref names
5 years ago 5892cdd6cc Stefan Sperling
introduce got_ref_alloc()