Commit Briefs

8469d82143 Stefan Sperling

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@


9fdde394b8 Omar Polo

got stage: implicitly unstage when staging the reverse of the staged diff

otherwise we end up with a staged empty edit for that file. ok stsp@


a19f439c4e Omar Polo

don't pass $ret to test_done on failure when it's known to be zero

Otherwise the test directory it's not left in place; ok tracey@


49c543a6fe 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.



4f3c844bea Stefan Sperling

make 'got update' display the worktree's branch name upon success

ok tracey



fe621944e8 Stefan Sperling

merge new diff implementation from the git.gameoftrees.org diff.git repository

This new diff implementation was started by Neels Hofmeyr during the u2k20 hackathon and now replaces diffreg.c code lifted from the OpenBSD base system. The integration of this code into Got was done by me. Got now uses the patience diff algorithm by default. The diff.git repository will remain the primary repository for the diff code, which already compiles and runs on other operating systems such as Linux. Any fixes and improvements for files inherited from the diff.git repository should be written against that repository and synced to got.git afterwards.


f6cae3ed1e Christian Weisgerber

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

ok stsp


7fb414ae4d 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




fa3cef6379 Stefan Sperling

make 'got stage -p' work with symlinks



c631b11525 Stefan Sperling

make staging of symlinks work


9627c110be Stefan Sperling

show a summary of conflicts and related problems after updating/merging files

ok millert@


7b5dc508da Stefan Sperling

fix staging of multiple files with -p

ok semarie


46f68b205b Stefan Sperling

show file mode differences when diffing trees





0f6d741505 Stefan Sperling

implement got revert -R


e70a841e31 Stefan Sperling

test repeated stage -p on added and deleted files


af5a81b2ea Stefan Sperling

fix and test repeated stage -p on the same file


0f1cfa7fd9 Stefan Sperling

add test with out-of-date staged files