Commits


preverse binary files during updates and merges


let gotadmin find the repository automatically if invoked in a work tree Move a small amount of code from worktree.c to a new file worktree_open.c, which contains everything required to open and close a work tree and inspect some of its basic parameters. This can be used by gotadmin. ok tracey


skip ignored directories during 'got status' disk crawl


show commit progress output when 'got merge -c' is used Otherwise no progress output is shown at all with this command. Commit progress output will also display any additional changes which resulted from conflict resolution. ok millert@


for portability, handle errno variations upon open(2) failure with O_NOFOLLOW Problem pointed out by naddy for FreeBSD -portable. Discussed with millert, thomas adam, and naddy.


allow bad symlinks to survive a merge Commands which perform merges will now install bad symlinks as symlinks in the work tree, instead of creating them as regular files. This means bad symlinks committed with 'got commit -S' (or Git) will be preserved. The decision to introduce a bad symlink is done at commit-time and merges should not forcefully reverse this decision. The cherrypick and backout commands require a manual commit step, and a merge result with bad symlinks will require use of 'got commit -S'. Additional testing by thomas adam


portable: add FreeBSD support This adds the capability to compile got-portable on FreeBSD.


fix 'got update' of an added + obstructed file When 'got update' tried to add a new file to the work tree and this file was obstructed by, say, a directory on disk, the update failed: $ got update ? new got: new: Is a directory $ And the work tree was not updated. With this commit this situation is properly detected as an obstruction and the update succeeds: $ got update ~ new Updated to refs/heads/master: c1f85b4938dc4c668a88f13df2b98a520fc077cc File paths obstructed by a non-regular file: 1 $ Extend a corresponding test case to cover this issue. ok tracey


plug memory leak in got_worktree_merge_in_progress(); spotted by tracey


add a 'got merge' command for creating merge commits Additional testing by Thomas Adam. ok tracey


portable: initial Linux compilation This commit modifies the GoT main branch to be able to compile it under linux.


indentation fixes


limit checks for merge conflicts to files affected by the merge Performance problems reported by naddy


plug a memory leak in check_merge_ok()


fix bogus error when 'got cherrypick' merges changes into a locally added file reported by + ok naddy


Update comment regarding the merged_paths list used by rebase and histedit with insight I obtained while trying to make this idea work, and failing...


backout 7280143edc2d689b1f57d5a46d376e48cdae64a2; not needed after all


disable ignore lists during status walks used by rebase and histedit Fixes rebase of gotwebd branch which added a new directory which is also matched by .gitignore rules on the branch.


refactor collect_commitables() to make it easier to call from elsewhere later


Make 'got add' always require the -I option in order to add ignored files.


allow obstructed files skipped by 'got update' to be updated again


fix a bug where files skipped by 'got update' could not be updated again ok semarie@


switch from SIMPLEQ to equivalent STAILQ macros The singly-linked tail queue macros were added to OpenBSD 6.9 and are more widely available on other systems. ok stsp


new -I option for 'got status' to show files which match an ignore pattern


fix bogus 'permission denied' error when a file at work tree root is removed ok naddy