Commits


leave work tree in a usable state after 'got rebase' fails path-prefix checks reported by naddy


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.


switch branches during noop rebases Always update to the specified branch even if the branch is already rebased (no commits needed to be rebased, and the branch does not need a fast forward). With the old behavior of erroring and staying on the current branch, I sometimes found myself ignoring the error message, treating it as information and assuming the branch update, and later on committing on top of origin/main instead of the main branch. feedback and ok stsp


ignore unversioned files while aborting rebase, histedit, merge or operations ok jrick


interrupt 'got rebase' upon missing/unversioned/not-deleted files


print additional stats about things that went wrong during a merge


use the POSIX-compliant "date -u" command to return UTC time; ok stsp


add missing "return 1" to failure handling in the regress scripts ok stsp@


make 'got ref -d' print reference name and value like the new -X options do


new -X option for removing backups created by got rebase and got histedit ok semarie


fix unrelated changes being merged by got cherrypick/backout/rebase/histedit This was a long-standing and very annoying bug. The two xfail tests in the cherrypick test suite are passing now.


rebase/histedit -l: error out if no backups for the requested branch exist


ensure that old commits remain referenced after rebase and histedit Create automatic "backup" references which ensure that objects from the pre-rebase or pre-histedit state remain in the repository. A new -l option for 'got rebase' and 'got histedit' lists old commits. This makes it easier to recover from botched rebase or histedit operations. Removal of such objects currently requires got ref -d and git-gc. This will be made more convenient in the future. testing and ok jrick


simplify the error message shown when 'got rebase' has nothing to do


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