Commits


move worktree base refs into a subdirectory


introduce got_path_dirname()


fix dirname() usage errors around got_path_mkdir()


fix broken error checking in got_ref_write()


move worktree-specific error handling out of got_path_mkdir()


'got update' also needs repo write access now


fix allocation size bug in got_lockfile_lock()


remove path portion from worktree base commit ref name


deduplicate code for constructing a worktree's base ref name


refuse to create got worktree at a git repo path


create references to base commits of got worktrees


introduce got_ref_list_free() and use it in got and tog


add 'got ref' subcommand; no support for symbolic refs yet


add got_ref_delete(); only loose refs supported for now


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