Commit Briefs


017406073f Stefan Sperling

avoid got_repo_map_path() in 'got blame'

'got blame' does not need access to the work tree. So far the work tree was completely hidden with unveil(). We must now expose the work tree while resolving the path, so unveil() calls are shuffled around slightly. Failing realpath() calls would mess with path resolution otherwise. There's a bug in got_worktree_resolve_path() where it failed to canonicalize a path constructed from a user-specified path that does not exist on disk. Note that this path falls into strncmp() a few lines down. I am fixing this by adding canonicalization. Generally, joining paths with asprintf() and comparing paths with strncmp() is fragile. A more general solution might be needed but I am leaving that for another day. ok naddy



3818e3c42c Christian Weisgerber

convert all remaining instances of chmod(2) to fchmod(2)

ok stsp


0843a4ce46 Sebastien marie

use fchmod(2) instead of chmod(2). it is less racy, and we just opened the descriptor.

ok naddy@ stsp@




eef9542c44 Stefan Sperling

preserve what was passed in if got_repo_map_path() can't figure out a path

problem found by + ok naddy


603cdeb0c7 Stefan Sperling

make 'got log' avoid got_repo_map_path() if run in a work tree

ok naddy


20b7abb3fa Stefan Sperling

detect unknown repository format extensions (such as sha256 format)

ok millert


60ca2a50c4 Stefan Sperling

bump version number


47d693bd3e Stefan Sperling

CHANGES for 0.43


62d463cac1 Christian Weisgerber

indentation fixes


54eb00d5be Stefan Sperling

properly handle nonexistent remote repository names given to 'got fetch'

found by jrick ok naddy


2513f20abd Stefan Sperling

plug memory leaks in error paths; found by naddy


74cfe85e39 Stefan Sperling

use got_path_dirname() in tog's input_log_view(); avoids const dirname(3)

ok 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


0c93d2044b Stefan Sperling

tried_root in got_open_repo is not needed

ok naddy