Commits


do not rely on <zlib.h> to pull in <unistd.h> ok stsp


cope with directory entries returned from readdir(3) with type DT_UNKNOWN Such directory entries need special handling to make our directory traversal code work on filesystems that do not support the d_type optimization. I found this problem because references stored in the refs/ directory were not shown by 'got log' and 'tog log' when a repository is mounted over NFS. helpful feedback + ok millert@


fix got_ref_change_symref(); it changed the ref's name instead of its target


handle refs/remotes/origin/HEAD properly; reported by Matthias aka _xhr_


allow for limiting output of 'got ref -l' to a single ref or a namespace


make replacing symrefs actually work in 'got fetch'


properly lock references when 'got fetch' needs to update them


make got_ref_list() work on a fresh repository created with got_repo_init()


allow 'got ref' to manipulate refs which do not have a slash in their name


move got_repo_cmp_tags() to got_ref_cmp_tags()


convert tree entries from SIMPLEQ to an array


ignore empty files in refs directory; convert parse_ref_file() to getline(3)


show bad reference names in error messages to make such errors more clear


fix possible NULL deref in alloc_symref()


fix deletion of branches stored in packed-refs broken since 29606af7a3a58767bf817a38035490899609d13e


make 'got tag -l' list tags by time stamp in descending order


allow got_ref_list() to restrict returned refs to a particular namespace


introuce a hard limit on recursion through symbolic references


eliminate strlen() calls during fileindex rb tree searches


remove pointless call to got_path_normalize()


introduce got_ref_alloc_symref() and got_ref_get_symref_target()


revert c191ed664f6c437ebc3e0c859c53e48b445401f1 'got ref' should only work with naked ref names; implicitly putting things into 'refs/heads' is a job for something like a 'got branch' command.


fix a segfault in got_ref_open()


make open_ref() tolerate missing reference dirs and files


allow single-component reference names with got_ref_alloc()