lib/worktree.c


Log

Author Commit Date CI Message
Stefan Sperling e2b1e152 2019-07-13T11:00:34 make 'got update' sync cached timestamps of unmodified files
Stefan Sperling fd7a136d 2019-07-13T10:31:11 remove duplicate check in if-statement
Stefan Sperling 01757395 2019-07-12T19:40:57 speed up commits during rebase by caching a list of merged paths
Stefan Sperling 1ee397ad 2019-07-12T19:06:56 allow error return from got_worktree_checkout_cb()
Stefan Sperling eb3df2c4 2019-07-12T16:42:30 prevent free(3) of uninitialized variable in rebase error path
Stefan Sperling b50cabdf 2019-07-12T16:36:21 skip out-of-dateness check during rebase for faster commits
Stefan Sperling 877a927c 2019-07-12T16:26:05 fix typo in comments
Stefan Sperling 93ec1b5f 2019-07-12T16:10:16 remove unused argument from update_fileindex_after_commit()
Stefan Sperling 69185643 2019-07-12T16:09:08 remove unused variable in commit_worktree()
Stefan Sperling a0e95631 2019-07-12T16:07:35 use the new commit_worktree() helper function during rebase
Stefan Sperling 1675efa3 2019-07-12T16:07:03 fix double-free introduced during refactoring
Stefan Sperling 39cd0ff6 2019-07-12T15:31:21 move core commit code from got_worktree_commit() to a helper function
Stefan Sperling 347d1d3e 2019-07-12T15:04:27 eliminate redundant fileindex open for status during commit and rebase -a
Stefan Sperling 55bd499d 2019-07-12T14:53:13 don't open file index earlier than needed when aborting rebase
Stefan Sperling ca355955 2019-07-12T14:51:33 oops, sync fileindex again after aborting rebase
Stefan Sperling 267fb255 2019-07-12T14:45:56 revert local changes before checking out files when aborting a rebase
Stefan Sperling a3a2faf2 2019-07-12T14:44:11 use checkout_files() helper in got_worktree_rebase_abort()
Stefan Sperling 711d9cd9 2019-07-12T14:39:07 eliminate a pointless goto in worktree.c
Stefan Sperling 07ed472d 2019-07-12T14:37:39 move core functionality of got_worktree_checkout_files() to a helper
Stefan Sperling 6ced4176 2019-07-12T14:20:33 move a chunk of file checkout code into a separate helper function
Stefan Sperling e642f803 2019-07-12T13:01:51 don't leak redundantly allocated relpath in got_worktree_checkout_files()
Stefan Sperling fb399478 2019-07-12T12:46:29 plug fileindex_path memory leaks
Stefan Sperling 5ade8233 2019-07-12T12:33:38 eliminate potential got_fileindex_free(NULL) calls
Stefan Sperling 3605a814 2019-07-12T12:31:34 eliminate inline implementations of open_fileindex() in worktree.c
Stefan Sperling 8ec7bf54 2019-07-12T12:09:39 refactor file index syncing out of update_fileindex_after_commit()
Stefan Sperling 69844fba 2019-07-11T15:18:52 ensure all rebase-related refs get deleted when rebase is done
Stefan Sperling edd02c5e 2019-07-11T14:22:42 bump fileindex base commit IDs after rebasing a commit
Stefan Sperling ff0d2220 2019-07-11T13:59:20 handle no-op changes during 'got rebase -c'
Stefan Sperling 818c7501 2019-07-10T18:23:39 initial 'got rebase' implementation
Stefan Sperling 2b496619 2019-07-10T22:41:08 fix bug exposed by test_commit_added_and_modified_in_same_dir
Stefan Sperling 950a4a90 2019-07-10T15:22:52 use got_fileindex_free() to free a fileindex structure
Stefan Sperling 6c4c42e0 2019-06-24T22:28:11 implement search for 'tog blame'
Stefan Sperling 2c7829a4 2019-06-17T14:15:05 implement 'got init'
Stefan Sperling 102ff934 2019-06-11T11:59:18 don't report 'base bumped' status if base is up-to-date
Stefan Sperling a484d721 2019-06-10T12:10:37 don't report base-bump-only updates as 'already up to date'
Stefan Sperling 1a36436d 2019-06-10T11:58:32 relax out-of-dateness check for 'got commit'
Stefan Sperling 46b6ee73 2019-06-04T20:59:48 rename some variables
Stefan Sperling af12c6b9 2019-06-04T16:49:20 ensure that file index is synced to disk in case of errors
Stefan Sperling e20a8b6f 2019-06-04T16:35:01 allow multiple file path arguments for 'got revert'
Stefan Sperling 07f5b47a 2019-06-02T21:30:22 don't leak 'relpath' memory in got_worktree_schedule_add()
Stefan Sperling 17ed4618 2019-06-02T21:24:17 allow removing multiple paths at once for 'got rm'
Stefan Sperling 03415a1a 2019-06-02T20:31:34 allow 'got cherrypick' with a root commit (adds all files in commit)
Stefan Sperling a8db5ed8 2019-06-02T18:39:00 remove unused fields from struct merge_file_cb_arg
Stefan Sperling 2b92fad7 2019-06-02T17:52:19 test and fix expected file status after 'got cherrypick'
Stefan Sperling 9c6338c4 2019-06-02T17:10:29 introduce sync_fileindex() helper in worktree.c
Stefan Sperling 234035bc 2019-06-01T13:35:47 add 'got cherrypick' command
Stefan Sperling f6d88e1a 2019-05-29T14:45:50 fix lack of NUL termination of a path; bug exposed by new realpath(3)
Stefan Sperling c932eeeb 2019-05-22T10:25:50 make 'got update' bump the base commit ID of unchanged files This change makes it actually possible to get around commit-time out-of-dateness by running 'got update'. The test added with this commit shows that our out-of-dateness check is currently too simplistic; an update is required between any two commit operations! It would be better to allow commits to proceed until a situation arises where file content must be merged.
Stefan Sperling 8656d6c4 2019-05-20T16:31:38 make struct got_commitable opaque to library users
Stefan Sperling a3df2849 2019-05-20T16:02:16 fix bug reproduced by xfail test 'test_commit_added_subdirs'
Stefan Sperling 024e9686 2019-05-14T13:22:16 add branch support to 'got update'
Stefan Sperling 08573d5b 2019-05-14T12:16:51 add branch support to 'got checkout'
Stefan Sperling b416585c 2019-05-13T18:19:59 store file's base commit ID in got_commitable and use it for OOD check
Stefan Sperling 016a88dd 2019-05-13T18:02:39 report base commit of fileindex entries to status callback
Stefan Sperling c4e12a88 2019-05-13T17:52:58 rename got_commitable's 'base_id' to 'base_blob_id'; more obvious
Stefan Sperling 638f9024 2019-05-13T12:40:57 rename got_error_prefix_errno() to got_error_from_errno()
Stefan Sperling 19332e6d 2019-05-13T11:04:22 avoid undefined behaviour (comparison with string literal)
joshua stein 33ad4cbe 2019-05-12T19:53:17 implement spawning an editor to collect a commit message bails on empty messages, trims leading and trailing newlines this currently disables the unveil in the commit process because it's not compatible with spawning the editor also prevent commits when there are no changes
Stefan Sperling 2f17228e 2019-05-11T21:18:39 lock branch reference file during 'got commit' to prevent a race
Stefan Sperling 1dd54920 2019-05-11T18:50:57 open the file index just once when adding multiple files
joshua stein 2af4a041 2019-05-11T16:21:20 got_error_set_errno: take a char arg to pass to got_error_prefix_errno $> got rm a got: : No such file or directory becomes $> got rm a got: /path/to/a: No such file or directory
joshua stein 656b1f76 2019-05-11T14:26:12 while (1) -> for (;;)
joshua stein 230a42bd 2019-05-11T13:04:38 got_error_from_errno -> got_error_prefix_errno also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)
joshua stein 48b8b0eb 2019-05-11T10:40:57 error: introduce got_error_prefix_errno for better errno messages
Stefan Sperling 324d37e7 2019-05-11T09:14:30 make got path APIs available to library consumers
Stefan Sperling 4229330b 2019-05-10T18:44:42 fix allocation size in alloc_added_blob_tree_entry()
Stefan Sperling 0f63689d 2019-05-10T18:20:01 remove unnecessary allocation in match_ct_parent_path()
Stefan Sperling ce0de6b6 2019-05-10T18:16:20 fix memleak in write_tree()
Stefan Sperling 797eca75 2019-05-10T18:16:03 remove dead code
Stefan Sperling 9ba0479c 2019-05-10T15:09:13 fix memleaks in write_tree()
Stefan Sperling 36a38700 2019-05-10T14:53:03 stop caching head ref's value in struct got_worktree; may become stale
Stefan Sperling 1251a9e5 2019-05-10T13:06:00 note potential problem in the existing out-of-dateness check
Stefan Sperling d56d26ce 2019-05-10T11:24:37 move out-of-dateness check to a helper function
Stefan Sperling 7200e87c 2019-05-10T11:19:49 handle blobs deleted in HEAD correctly in commit out-of-date check
Stefan Sperling 819f385b 2019-05-10T11:16:09 ensure that commits use intended base blobs for changes
Stefan Sperling e75eb4da 2019-05-10T10:55:08 rename field in 'struct commitable'
Stefan Sperling 588edf97 2019-05-10T10:52:00 commit against the HEAD commit, not the work tree's base commit
Stefan Sperling 44d03001 2019-05-09T17:07:33 don't traverse into unmodified subtrees during commit
Stefan Sperling 8eecaf36 2019-05-09T16:18:14 don't close a tree in the wrong place; fixes a bus error crash
Stefan Sperling bc70eb79 2019-05-09T15:45:21 fix bug in concurrent commit check and add another commit test
Stefan Sperling 09f5bd90 2019-05-09T15:33:57 try to detect concurrent commits; not perfect yet (see comments)
Stefan Sperling 768aea60 2019-05-09T14:41:50 fix perms in committed tree entries
Stefan Sperling f2c16586 2019-05-09T13:50:52 update HEAD reference after commit
Stefan Sperling ebf99748 2019-05-09T13:22:33 update fileindex after commit
Stefan Sperling baa7dcfa 2019-05-08T20:00:37 don't visit added subtrees reundantly
Stefan Sperling afa376bf 2019-05-08T19:18:45 report commit item status
Stefan Sperling 9d40349a 2019-05-08T18:49:54 add TODO comments
Stefan Sperling de18fc63 2019-05-08T18:37:37 write commit objects
Stefan Sperling 2f51b5b3 2019-05-08T17:02:01 handle added subtrees during commit
Stefan Sperling 036813ee 2019-05-08T12:17:01 more progress on commits: write trees recursively
Stefan Sperling ca2503ea 2019-05-07T22:04:43 writing the lowest level of trees works now
Stefan Sperling cf745477 2019-05-07T21:00:24 whitespace
Stefan Sperling 69960a46 2019-05-07T20:38:42 don't try to get dirname of a basename
Stefan Sperling ef2a1e11 2019-05-07T20:30:05 fix another segfault
Stefan Sperling c42269f6 2019-05-07T20:29:19 fix a segfault
Stefan Sperling 0b5cc0d6 2019-05-07T20:24:47 more work on getting parent trees of commitables written
Stefan Sperling ed175427 2019-05-07T19:53:44 more progress on generating new tree entries
Stefan Sperling 24519714 2019-05-07T12:01:17 collect tree ids for committables
Stefan Sperling a7055788 2019-05-07T11:45:10 pass the right path to got_object_blob_create()
Stefan Sperling cf066bf8 2019-05-07T11:42:54 create blobs