Commits


consistently use ten Xs in mkstemp(3) templates patch from Josiah Frentsos, thanks!


extend test_import_ignores test coverage Cover the case where a regular file would match if the ignore pattern did not have a trailing slash.


make 'got import' -I option match directory names with a trailing slash reported by Lucas on IRC, who sent a patch which this commit was based on ok jamsek


add gotadmin init -b <branch> to specify repo head ref Similar to `git init -b`. Includes a change to `got import` behaviour such that "main" is no longer hardcoded by default; instead, we import to the branch resolved via the repository's HEAD reference unless `got import -b` is used, and only if HEAD cannot be resolved to a branch do we fallback to "main". includes fix plus ok from stsp@


move 'got init' command to 'gotadmin init' This functionality is better suited for gotadmin because it is technically a server-side repository operation when we consider the 'got' tool as the client-side tool. I have plans to move 'got import' into gotadmin as well. ok op@


always show commit or tree IDs in diff header, in order to help 'got patch' The idea is that got patch can simply look for a line such as: commit - abcde1234567... to find the merge base commit ID to show in diff3 conflict markers. got log -p now displays commit IDs in its diff header, instead ofl tree or blob IDs. ok op@


use test(1) -eq and -ne to compare integers, and reduce quoting This brings the rest of the regression test scripts in line with patch.sh.


make 'got checkout' display the checked out reference and commit ID ok tracey


use POSIX [s1 = s2] syntax instead of [s1 == s2]; patch by Ryo ONODERA


add quotes around $GOT_TEST_ROOT and avoid mktemp -p; suggested by naddy


allow regress test data to be stored in locations other than /tmp


switch function declarations from Korn shell to Bourne/POSIX shell syntax ok stsp


add a -q option to tests for quiet output and use it for 'make regress' Previous default output remains when test cases are run individually. ok tracey


add symlink support to 'got import'


rename 'got init' and 'got import' default branch to "main"; patch by kmos@