Commits


sort paths in got log -Pp and tog's diff view the same way as in the diff reported by and fix confirmed by naddy


make tog searches start from the current position in all views ok naddy@


ignore the return value of closefrom(2); patch by Anna a.k.a. CyberTailor millert@ suggests that this check is not needed, and that ideally we should be using close-on-exec instead. I will look into this, but in the meantime this change will help -portable: https://bugs.gentoo.org/828003


let new 'tog log' searches start out from the currently selected commit ok naddy tracey


sync files from diff.git f1dbec24f9a9553e22659f6c592c91e96221f6b9


bump version number


CHANGES for 0.64


Release 0.64


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


portable: enable merge.sh This seemingly went walkies, so reenabling it.


regress: make merge.sh more POSIXy Don't use '==' for equality matching in sh, as this won't work across all shells. ok @naddy


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.


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


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 '=='.


sync dist file list


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.


portable: include worktree_open Make worktree_open part of the build.


add got branch -t option to sort listed branches by modification time


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.


add got ref -t option to sort listed references by modification time


make tog use got_reflist_sort() instead of reloading refs while sorting them


implement got_reflist_sort() which sorts a ref list in-place


fix uninitialized error from got_ref_cmp_by_commit_timestamp_descending()


allow sorting references by timestamp in tog


preverse binary files during updates and merges