Commits
- Commit:
ae98518f6bdbf22a92bd88399deab1642b3721ca
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: only request commits when child hsplit increases
Fix bug introduced in 3c1dfe12b3 that fails to properly populate child log
views due to incorrect request_log_commits() calls: (1) when increasing the
bottom hsplit in a ref/log splitscreen; and (2) when reopening a child log
view after closing a resized child log view:
$ TOG_VIEW_SPLIT_MODE=h tog ref
return # open log view in bottom split
4+ # increase log (child/bottom) split
*new log lines are not populated*
q # close log view
return
*commits are not loaded*
ok stsp@
- Commit:
97cb21cdfaeff6052c984dd9a9bbe56f5e2deb60
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: adjust view line offset when resizing hsplit
Squish bug that can move the selection cursor offscreen when resizing
horizontal splits due to bogus offset:
$ TOG_VIEW_SPLIT_MODE=h tog # 80x24
22j
return # open diff view in a hsplit
tab # focus log (top) split
10+ # increase top split by 10 lines
22j
return # open diff view in a hsplit
F # toggle fullscreen diff view
tab # focus log (parent) view in fullscreen
*selection cursor will be off the bottom of the screen*
ok stsp@
- Commit:
4fc71f3b760478d7300692fa227470174bf71bef
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: enable moving to prev/next blame line in diff view
Blame/diff view counterpart of log/diff <,.> key maps to traverse commits
corresponding to each line of the annotated file from the diff view. Includes
fix from stsp@ to work while the file is still annotating.
ok stsp@
- Commit:
ddbc4d37d03655e34912912b916ef1db6e481fed
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: make 'S' switch split mode irrespective of the view
Always switch internal split state and redraw view according to the
constraints of the new mode.
suggested by and ok stsp@
- Commit:
f2d749db68f584041b421d0b6f6f3fb64251ff0c
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make 'tog log' error out in shallow Git repositories instead of hanging
ok op@
- Commit:
0a046396cb50b910b505fbd85552af508f983fd8
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: fix sed parsing
When making sed's command-line flags portable, don't split on $@ before
parsing it, as this won't preserve the original string which needs
passing to sed unmodified if it's never had to be changed.
- Commit:
c1233c7fd72e99312b77804f7decb19236efd914
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: add test stage to all runs
Whenever a CI change is made, also run the test suites. This is enabled
for just Ubuntu and FreeBSD for now.
- Commit:
432c637b8849b493bbe9a6907f2adc9e3d6d9c32
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: improve sed handling
When massaging sed command strings, to handle the differences between
"-i ''" not meaning the same thing on non-BSD systems, this previously
used a bashism to determine the positional arguments.
Instead, defer to using a loop which doesn't rely on bashisms.
- Commit:
cc5596d8c4a9f7e1fc5a632e5093e23f4fb80cb5
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: remove backticks from string
Remove erroneously-placed backticks when describing a lack of GNU
coreutils.
- Commit:
980b161540a9fb1b3691c610b5799ea1d3158a97
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: make OS-detection sh-compatible
Don't rely on $OSTYPE being available, which it isn't in strict POSIX
mode. Ubuntu's sh is often alised to dash, and hence this fails.
Instead, default to using the output from 'uname'.
- Commit:
8f000c9d285bf6e6880991a0eefe0c5db5084cbb
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: ci: add ubuntu
Add Ubuntu as a dedicated CI environment. By default, sh is aliase to
dash which often provides interesting challenges for portability, so
making this work here is a good thing as mistakes will be spotted
earlier.
- Commit:
e8da6c412759282e41c232887b3c9e4bdb3362e3
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: harden coreutils check
When running tests on non-Linux systems, it was just assumed that GNU
coreutils had been installed. This meant that the wrapper commands for
date/ln on those systems always had gdate and gln installed.
Rather than assume that, check to see if the GNU coreutils versions as
present, and if not echo a warning.
- Commit:
d3b82051e9673733a447d3fec7d1326f0a87e359
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: set PLATFORM when running direct
PLATFORM is populated when running via `./configure && make` but this
isn't guaranteed if an individual test is run directly, such as
`regress/cmdline/tag.sh`. In such cases, PLATFORM will be empty, but we
still want to use it. Since we test for non-linux values, only set
PLATFORM if we're running on Linu so that the correct commands are used.
- Commit:
b9e3c50406aeac333955263c028944bb064a695b
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: remove stale comments
Remove comments which are no longer required.
- Commit:
53d2bdd3e37f479b355cf7c28a6d404076799570
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: implement +/- keymaps to resize the focussed split
Increase/decrease the currently active split. New dimensions persist for the
tog session, irrespective of subsequent closures and new child views.
suggested by and ok stsp@
- Commit:
644866927109ba80d819dc2b19530253fd93be58
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: implement global 'S' key map to switch split mode
If in a vertical (horizontal) split, switch to horizontal (vertical), and make
new split mode persist.
ok op@
- Commit:
dab315a53201f10e04361d5f740a7e921260d60c
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
use got_privsep_flush_imsg instead of reinventing it
ok stsp@
- Commit:
e215b807ba3c0b3e54a5ea161e750ac3466a1b0e
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
get rid of unneeded recv_imsg_error calls
got_privsep_recv_imsg users don't need to bother to look whether the
imsg type is GOT_IMSG_ERROR because got_privsep_recv_imsg already
takes care of that and turns GOT_IMSG_ERROR into `struct got_error's
automatically.
ok stsp@
- Commit:
9b5e2ebd207db582ccb731c9543408456af87000
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
rework got_privesp_recv_tree to use got_privsep_recv_imsg
ok stsp@
- Commit:
eadd2d4623d9f234e06467faaa563e9186c8d38b
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: delta_cache: remove includes
Remove those includes which are searched for portably.
- Commit:
6dc6a24ce5eb2ed4c94b53a3cde4cd13415c35e1
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix buf_alloca error handling
Left-over from how OpenRCS/OpenCVS do error handling. OK stsp@
- Commit:
b9e845cdc26dd6b4006984d6bb7c5c45d5c8bc24
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: use bs=1M for dd, not bs=1m; fixes -portable test failure on ubuntu
GNU dd only accepts upper-case letters for the size units.
- Commit:
26498a8b19806608c6307f826526faf6987b90fa
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
delta_cache.c needs to include <stdint.h>; unbreaks -portable build on ubuntu
- Commit:
ff5e1f096349d36a0ba772c0d78a21b2ab54e060
- From:
- Josh Rickmar <jrick@zettaport.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add signer_id option to got.conf(5)
Setting this option will cause 'got tag' to sign all created tags using
the SSH key, unless overridden by the -s flag.
ok stsp@
- Commit:
8fe0cd3a6f849b803a9113fa3a2e06fad9f5315b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: rework date command for Ubuntu
Don't rely on '-r' for date as it's not consistent across linuxses.
Instead, expand the variables required and use '-d'.
OK thomas@