Commit Briefs

844307c69e Thomas Adam

Release 0.64 (tags/0.64)


7626433e5d Thomas Adam

portable: remove queue.h

queue.h is included portably, so it shouldn't be included directly.


cdba74ba3b Thomas Adam

portable: enable merge.sh

This seemingly went walkies, so reenabling it.


c3f0d5676d Thomas Adam

regress: make merge.sh more POSIXy

Don't use '==' for equality matching in sh, as this won't work across all shells. ok @naddy


1ff9fea4ad Thomas Adam

portable: running tests when shell is dash

Ubuntu's default shell is dash, when using /bin/sh. The portable nature of got is such that "$OSTYPE" to determine the host type (linux, bsd, etc.) is bash-specific and is not part of POSIX. autotools already provide a mechanism for determining the underlying platform type, and PLATFORM is already a subst value. Therefore, let the -portable parts of the regress test-suite use $PLATFORM to look at the underlying OS type. The tests themselves already expect /bin/sh to be POSIX-compliant in all other areas, so there should be no need to change the #! lines.


f97d3fa0ae Thomas Adam

regress: cleanup: bypass sed wrapper

The sed portable wrapper works for inplace editing, but isn't required for just a single stream.


3a76741959 Thomas Adam

regress: make test operands POSIX compliant

Since the interpreter for the regress shell scripts are using /bin/sh this will usually imply some level of POSIX compliance (that isn't bash-specific, for instance). Some systems use dash as their sh shell and as such is stricter POSIX compliance. To help -portable, make the shell test checks use a single '=' for equality, rather than '=='.


4682a4a036 Thomas Adam

sync dist file list


98182bd051 Thomas Adam

switch tog ref view's sort order command key to "o" instead of "s"

The letter "o" does not overlap with existing options of 'got ref' and is also used by mutt(1) for this purpose.


2f6f817978 Thomas Adam

portable: include worktree_open

Make worktree_open part of the build.



a729e2888f Thomas Adam

fall back to comparison by name when refs have the same timestamp

This fixes an issue where some references were missing from lists of references sorted by timestamp.






3bfadbd404 Thomas Adam

allow sorting references by timestamp in tog


24f136e0f9 Thomas Adam

preverse binary files during updates and merges


1ea7ccc6f3 Thomas Adam

let gotadmin find the repository automatically if invoked in a work tree

Move a small amount of code from worktree.c to a new file worktree_open.c, which contains everything required to open and close a work tree and inspect some of its basic parameters. This can be used by gotadmin. ok tracey



d912d1250c Thomas Adam

Fix mandoc HTML rendering for command aliases

Replace hand-rolled parentheses with the proper mdoc(7) macro, otherwise the closing ")" ends up inside the command description. Reported by Josh Rickmar, thanks!



82d979c595 Thomas Adam

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