Commits
- Commit:
1a481ef4f1793d5d5733afe9349cdbfc0b5ea6ce
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: release 0.107
- Commit:
3acc92cbbe269f366ca851d0d0ab55c8af846550
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: cvg add got_compat.h
Needed to compile most things on -portable.
- Commit:
dd4c419722fe06a0e79fc39e303003908f7feceb
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
check for errors from telldir(3); suggested by jamsek
- Commit:
f6852d460b7949c591420eadb61ddf8e211c03a6
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make 'got import' output independent of readdir(3) entry order
ok jamsek
- Commit:
35740e3fca503f1984e047a253671dfd965625a6
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add a TODO item for 'gotadmin cleanup'
- Commit:
fdbddcd4b0e0c3e6e2bb1549f1b0aa5792bd34d9
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
d469c4c2197aa2d8914b98e96dbeb8b5e00f87e1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add more info about the test suite to README.portable
Prompted by questions from Johannes Kastl.
- Commit:
ed4ebda33a8420b42a4a277ba056d2594ab4f2e9
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: remove portably-defined headers
These has to be looked for portably.
<sys/tree.h> recently reappeared due to TAILQ -> RB_* changes upstream.
- Commit:
7d147f690c96cc424ce3fd78b12b43877ae8a6eb
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: define HAVE_TREE_H if libbsd found
When using libbsd, ensure that we define HAVE_TREE_H; this means
libbsd's <sys/tree.h> is used over the compat version which stops
redefinition warnings from libbsd.
- Commit:
992e786b8f5cf5352f511063a514244871b1aeba
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
style(9): sort got-build-regress.sh getopts cases; ok stsp
- Commit:
a828ca839f3790bae1de18473692558c197267d5
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
style(9) whitespace: don't indent got-build-regress.sh cases
ok stsp@
- Commit:
8ecb7fe6a37816ca978dfe331a6173eb8f03db77
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
util/got-build-regress.sh: add missing 'W' to optstring
ok stsp@
- Commit:
8d5493c9d912382b91a5a5ac9f25351040078e02
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
fe354d70d4ad218c599cac447058537d734836e5
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
9976affb503011ab063f1de78688b26414d8ec9a
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
eb7ebd1cb08a207935fadc4f17e8c31cb6dca13b
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
1ac1d978352cb39038cfb80296e30c739a72ac05
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
13c67f87dfe5bbdaffe4614de19fd11dcbbafc17
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress/tog: add basic ref view tests; ok stsp@
- Commit:
85fd8f07c38f9da35257c66dde7ce2357271c7b7
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
696b1a9d2a13d33de9e3d182e3ec8fd3818f8b58
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tog: plug object id leak in resolve_reflist_entry error path
ok stsp@
- Commit:
6f001a132a5219599bd2cde4fea1957878cca26b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
skip memleak_send_basic in sha256 mode, it's expected to fail in that case
- Commit:
fba1c01f5ad1c8c5973200213fc44273a8ea3e78
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
4cef9d7c76a821328add4b99dd9873b1cac5f827
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress/tog: log view test for T keymap on worktree entry
Coverage for the case fixed in 74bea526c5.
ok stsp@
- Commit:
59f537777cf04d73d4c512780fef2cf6fd9b862d
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix NULL deref with T keymap on log view worktree entry
When the log view T keymap is used, the selected_entry is passed to
browse_commit_tree() to open a tree view of the repository as at
the selected commit, which passes the selected_entry->id member to
open_tree_view() to open the commit. The id member, which is a NULL
pointer in work tree entries, is dereferenced so we segfault.
If the T keymap is used on a work tree entry, use the base commit id
instead, which we must have if a work tree entry is selected.
ok stsp@
- Commit:
ee41227636ede5b06ebfaa180ad3a742d4634dc9
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
bump version number