6 years ago e8f369580e Stefan Sperling
read / free the head ref when work tree is opened / closed
6 years ago d6c38e0dea Stefan Sperling
free base commit when worktree is closed
6 years ago f5baf295a4 Stefan Sperling
read base commit hash when worktree is opened
6 years ago 65e3b81819 Stefan Sperling
set base commit to invalid commit id when work tree is created
6 years ago 0605801d85 Stefan Sperling
check read() return value properly in read_meta_file()
6 years ago 7ac9732201 Stefan Sperling
rename variable gotpath to path_got
6 years ago fdf001a7fe Stefan Sperling
add a proper definition for the worktree head
6 years ago e350ead34f Stefan Sperling
create an emtpy base-commit file
6 years ago 056e7441d0 Stefan Sperling
use a dedicated file for the work tree lock
6 years ago ef99fdb109 Stefan Sperling
use flock(2) because open(2) O_NONBLOCK also enables non-blocking I/O
6 years ago 73a5ef678f Stefan Sperling
lock meta data files in worktree correctly
6 years ago 6d9d28c32e Stefan Sperling
implement worktree open and close operations
6 years ago 2cb4bacb7c Stefan Sperling
assume good path input in got_worktree_init()
6 years ago 09fe317aa5 Stefan Sperling
add function to read worktree meta data file
6 years ago 4d94df2df6 Stefan Sperling
rename worktree set_head() operation to change_head()
6 years ago 606778cdb7 Stefan Sperling
fileindex update function probably won't be needed after all
6 years ago 577ec78f7e Stefan Sperling
store a path prefix in the worktree; will be used for subtree checkout
6 years ago 9dce68ed71 Stefan Sperling
typo in comment
6 years ago ed7464bb8c Stefan Sperling
whitespace
6 years ago 281294a560 Stefan Sperling
add stub for anticipated worktree function which updates fileindex
6 years ago 99724ed401 Stefan Sperling
add a helper function which creates worktree meta files
6 years ago 1451e70d40 Stefan Sperling
stamp worktrees with a format number
6 years ago f0e4a7b742 Stefan Sperling
indent long line
6 years ago 86c3caaf12 Stefan Sperling
add worktree skeleton code; implement got_worktree_init()