Commit Briefs

62d463cac1 Christian Weisgerber

indentation fixes


2513f20abd Stefan Sperling

plug memory leaks in error paths; found by naddy


20a2ad1cd2 Stefan Sperling

use got_path_dirname() in schedule_for_deletion(); avoids const dirname(3)

ok naddy


fddefe3be5 Stefan Sperling

use got_path_dirname() in remove_ondisk_file(); avoids const dirname(3)

ok naddy


f5375317cb Stefan Sperling

use got_path_dirname() in install_blob() to avoid const dirname(3)

ok naddy


f4994adcb4 Stefan Sperling

use got_path_dirname() in install_symlink() to avoid const dirname(3)

ok naddy


ce031e9edb Stefan Sperling

use got_path_dirname() in is_bad_symlink_target()

ok naddy


ed6b5030fc Stefan Sperling

use got_path_dirname() in merge_blob() instead of assuming const dirname(3)

ok naddy


3524bbf95a Stefan Sperling

make merge_file() use got_path_dirname() instead of assuming const dirname(3)

ok naddy


aedea96d34 Stefan Sperling

adapt got_open_worktree to non-const dirname(3)

ok naddy


d34b633ebd Stefan Sperling

use got_path_basename() in match_deleted_or_modified_ct()

ok millert


102b254e20 Stefan Sperling

switch to got_path_basename() in alloc_added_blob_tree_entry()

ok millert


1233e6b671 Stefan Sperling

switch to got_path_basename in revert_file

ok millert



0a22ca1a5a Stefan Sperling

make 'got histedit' collapse folded add+delete operations into a no-op

If a merged commit wants to delete a locally added file, and this locally added file matches the content which was deleted in the commit being merged, we can go ahead with the deletion because there is no risk of data loss. fixes the histedit problem reported by jrick on freenode



0823ffc2f6 Christian Weisgerber

use modern POSIX timestamp fields in struct stat

ok stsp


766841c297 Stefan Sperling

add -s option to 'got remove' which deletes files in a particular status

This makes it easy to deal with files that were deleted from disk by external tooling which modified the work tree. Such files are left in missing (!) status and can now be marked for deletion in bulk via 'got rm -s\! -R .' For consistency, modified (M) files can now be removed with 'got rm -s M' which implies 'got rm -f'. Prompted by feedback from krw@


f2b0a8b0a1 Stefan Sperling

fix committing file additions from a work tree with a path prefix

New files were added under the wrong tree in the repository if the work tree has a path prefix. Fix this problem and catch it in the existing commit_with_path_prefix regression test.


69d57f3de2 Stefan Sperling

fix spurious 'got cherrypick' error with a path prefix and an empty tree

If the work tree's path prefix does not exist in the first of the two trees, then 'got cherrypick' failed with "no such entry found in tree". But this is a legitimate situation, as shown in the new test added here. The first tree could be the empty tree, for example, which should result in 'got cherrypick' adding all files from the second tree instead of complaining about a non-existent path-prefix directory in the first tree.



b2118c49a1 Stefan Sperling

Add a 'got info' command which displays work tree meta-data.

Remove the alias 'got in' for 'got init'. The 'in' alias was too close to either 'init' or 'info'. ok tracey, millert