Commit Briefs

Christian Weisgerber

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.


Stefan Sperling

make 'got rm' report an "unexpected status" error for unversioned files

ok millert@


Stefan Sperling

make 'got rm' behave like rm(1) for paths found missing on disk

ok millert@


Stefan Sperling

sort and de-duplicate work tree path command line arguments

This is important in cases like 'got diff file.txt file.txt' which should only show the diff for file.txt once. suggested by kn@


Christian Weisgerber

accommodate ls -l implementations that print "total 0" in an empty directory

ok stsp


Christian Weisgerber

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

ok stsp


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@


Stefan Sperling

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


Stefan Sperling

expand test cases in test_rm_symlink




Tracey Emery

trim directories in got remove -R

This is a racy solution that needs to be properly implemented in the future. ok stsp


Tracey Emery

add -k option to 'got remove' to keep files on disk

ok stsp


Tracey Emery

add -R option to 'got remove' for recursive deletion

ok stsp