Commits
- Commit:
34b2702155c3b2f22d92d76d2f807e818ad5789f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add ssh -i identity-file support to commands which use the network
Add a -i option to got clone, fetch, send, as well as cvg clone,
update, commit. This allows ad-hoc use of SSH private keys without
having to create entries in ~/.ssh/config.
The test suite for an upcoming gotsysd(8) daemon needs this to log
into temporary test VMs with temporary SSH keys, both generated by
the test suite.
ok jamsek
- Commit:
ade7d17b61c37a325ad378c3094c412c26775695
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add -J option to usage() function of relevant commands
- Commit:
3333ce96c5559c5c1cfe8b4eb5822189f65af31c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'cvg commit' actually apply the -J option
- Commit:
7f59939ae67ad8168afa53ad5c1fa4f830269290
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
regress/gotwebd: implement paginated commits test; ok op@
- Commit:
d3901b506e85fd7b4dbdcbcd3f187a61346079a8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
try to improve http-server startup/teardown in regress
Let tests fail if http-server fails to start up within 5 seconds.
Make http-server report its process ID in its log file such that
tests can kill it by PID.
Prompted by semi-regular failures on my arm64 regress builder.
- Commit:
aca784d0f69d9c2ee7923c96181b6c5cc2d76355
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
use got_object_id_queue_free() instead of hand-rolled code
ok stsp@
- Commit:
79917dd6184d9c4e2b1f4e49aa89339cc475c3d0
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: don't apply count modifier to the H, &, p keymaps
It's annoying to have the help (H) and limit (&) keymaps repeatedly fire
after closing their respective views if accidentally preceded by a count
modifier, and doesn't seem like a valid use case. Similarly, writing N
patch files to /tmp is wasteful.
ok stsp@
- Commit:
ebdd042fb1f20d323eda3c34ef4fa6715288bb70
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for errors from telldir(3); suggested by jamsek
- Commit:
c0586da31b5b4f2503675a9d22a951eb68e54d4a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got import' output independent of readdir(3) entry order
ok jamsek
- Commit:
0bae7db616fd846dd88b3fd9c027556c1a4cf19b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a TODO item for 'gotadmin cleanup'
- Commit:
54859d1a7e279d839079f93620935e56eeaf33db
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make seq(1) invocations in test_log_commit_keywords() portable
The OpenBSD version of seq defaults to an increment value of -1 here.
On Debian we have to set the increment value to -1 explicitly. Otherwise,
seq produces no output at all and the test fails.
- Commit:
3fd8274f36c449b4db01aa4f5e6ab9709facd8f3
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
style(9): sort got-build-regress.sh getopts cases; ok stsp
- Commit:
77e47d3c8f372b3516e96773408fd5856130f578
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
style(9) whitespace: don't indent got-build-regress.sh cases
ok stsp@
- Commit:
2094d9ad422b473382c3ec3cf4313cf1eaf49120
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
util/got-build-regress.sh: add missing 'W' to optstring
ok stsp@
- Commit:
0f35fb6b3d80924fd72c566d007ffb01728f43ba
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: don't clobber error with got_repo_close() error
While here, style(9) the adjacent block: remove function call from initializer.
ok stsp@
- Commit:
919e5e7241ba484d4893ddf26b9c6f21877be3b5
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: clamp selected idx to avoid showing negative indexes
In the rare case views are smaller in height than the first line number
after the view's header lines (i.e., [2,5] depending on the view), we can
decrement the selected entry index into negative values; clamp it to 0.
Add a log view test case covering this path by opening a child tree view
and toggling fullscreen.
ok stsp@
- Commit:
b7045a4dd319c7794f8b3e7fcec3cf1fa06be040
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
fix NULL deref when scrolling small tog tree views down
In the rare case a tree view is smaller than four lines in height,
the last_displayed_entry is NULL. Check this condition on a scroll
down event with j/down arrow or ^f/pgdn to guard a NULL got_tree_entry
from being passed to got_tree_entry_get_next() where it is dereferenced.
And add a test case covering this path.
ok stsp@
- Commit:
6bdea1b4f0eadfdbbcb9d9b9aa0645b52501273f
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: don't mark incorrect base commit in nested log views
If a nested log view is opened, don't reuse the work tree's base commit
index from the initial `tog log` invocation because it is based on the
initial commit queue. If it has become invalid, an incorrect log view
commit entry is painted with the base commit marker. Reset the index
whenever opening nested log views so that it is recomputed, and write
a regression test to cover this case.
ok stsp@
- Commit:
35c7ffa4d97796f8a99059d3e45a7aa100352c0a
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
regress/tog: ref view coverage of tag references
Test for the error case when selecting tags that point to non-commit
objects. And test the valid case of selecting nested tags that resolve
to commit objects.
ok stsp@
- Commit:
c97fc5709bd14bff453f3c8eed75a07d3bfcbfc0
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
regress/tog: add basic ref view tests; ok stsp@
- Commit:
f94d6a831046ff1e2980a6313261e162c7d07f4e
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: make ref view selection of non-commit tags non-fatal
Tags can point to all git objects: commits, trees, blobs, and tags.
Selecting a tag that points to any object other than a commit causes a
fatal error. Instead, report a message to the status line. Similarly,
nested tags may resolve to a commit, which currently errors. Instead,
keep peeling till we reach the bottom and if it's a commit, use it for
the requested view.
ok stsp@
- Commit:
46f6a3467a8a363294b271ee81bba8d96be03f91
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: plug object id leak in resolve_reflist_entry error path
ok stsp@
- Commit:
d2483d56ac80deca571cff32a14bef0dd238bfa6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
skip memleak_send_basic in sha256 mode, it's expected to fail in that case
- Commit:
0b3936e0d1faf40aca2dcb9951b9df8c83d9824e
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: fix log view race condition evinced by regress
When the commit graph has been traversed, we set the log_complete flag
to signal the main thread that we've completed iterating commit history,
which request_log_commits() checks and, if set, returns early instead of
calling trigger_log_thread(). If called, trigger_log_thread() wakes the
log thread, then waits on the log thread to unblock when another commit
has been loaded. There's a race between the log thread setting the
log_complete flag and request_log_commits() checking it, which causes
trigger_load_thread() to wait on a signal that never unblocks because
there are no more commits to be loaded.
ok stsp@
- Commit:
2862fe8b5e48e0894e87c0278730d089d5d6ecaf
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
regress/tog: log view test for T keymap on worktree entry
Coverage for the case fixed in 74bea526c5.
ok stsp@