Commit Briefs

0c6f49baf2 Thomas Adam

build with -Wwrite-strings

Throwing this into the mix for a while, we can always get rid of it again if it becomes annoying. No objections from stsp@



9b4458b410 Thomas Adam

always show commit or tree IDs in diff header, in order to help 'got patch'

The idea is that got patch can simply look for a line such as: commit - abcde1234567... to find the merge base commit ID to show in diff3 conflict markers. got log -p now displays commit IDs in its diff header, instead ofl tree or blob IDs. ok op@


ef20f54204 Thomas Adam

build with -Wmissing-prototypes

ok stsp@


ef0b17aa7b Thomas Adam

portable: move FreeBSD capsicum header

This tidies up an #include required for capsicum on FreeBSD -- as its inclusion on FreeBSD is unconditional, but masking out cap_enter() on non-FreeBSD systems isn't. No functional change -- it's just cosmetic.


dc8f2a0ce7 Omar Polo

delete a few binary files added by mistake


48d12d8561 Omar Polo

repopulate .gitignore, revert 78c05fa

Probably due to a rebase, 78c05fa ended up truncating most of the portable .gitignore. Reinstate it with some small tweaks and add got-read-patch while here.


f6f9756590 Omar Polo

mention the cross-compilation fix


3c79ece5db Omar Polo

add -q to all the regress scripts


5d120ea841 Omar Polo

use capsicum on FreeBSD

Thanks to the design of Got, the libexec helpers don't need any resource (in fact they run under pledge "stdio recvfd" on OpenBSD) and so using cap_enter(2) on FreeBSD is dead-easy. While the main process can't be sandboxed on FreeBSD (needs to exec the helpers), all the tough work is done by these small libexec helpers which is also the biggest attack surface. tested by naddy, ok thomas


f620ae20ad Thomas Adam

portable: set next version


c22fe1e869 Thomas Adam

portable: CHANGELOG for 0.71 (tags/0.71)

This updates the CHANGELOG for the 0.71 commit.


07b0611c84 Thomas Adam

tog: prefix mvmt keymaps with count modifier like vi(1)

Enable compound commands for all movement keymaps (e.g., hjkl, bfdu). The optional prefixed count determines how many times the movement is performed; for example, '123j' (move 123 lines down) or '4f' (scroll 4 pages down). Counts are ignored if preceding non-movement and some singular movement operations (e.g., 't', 'r', 'ret', '/', '$', 'G', 'g'). ok stsp@


762b8e8215 Thomas Adam

got patch: use status G for merged files (and document it)

Suggested by stsp@. This makes possible to tell if 'got patch' used a merge-base from the repository for the 3-way merge or did a simple search/replace operation. While here update the tests to look for the 'G' status and the manpage, which was also missing the documentation for the 'C' status in got patch. ok stsp@


c9a4f4fa65 Thomas Adam

got patch: ignore blobs not found

since diffs are often enclosed in other formats (e.g. emails) we might parse something and think it's a blob id when it's not. This should already happens, but apply_patch is looking for the wrong error due to a leftover from previous attempts. Reported by stsp@ while here tweak the test_patch_merge_unknown_blob to also try with a dummy commit id, as now got-read-patch requires it in order to consider a blob id. ok stsp@


748b46b9f4 Thomas Adam

fix `limit' accounting in draw_commit

if the child view is fullscreen we don't need to subtract one, because no vborder is drawn. ok Mark Jamsek


4c2d69cb28 Thomas Adam

tog: make SPACE page down in all views

ok op@, Mark Jamsek


b65b3ea056 Thomas Adam

fix fullscreen view regression introduced in 0dbbbe90fd

When cycling from a child view in fullscreen, the parent view is opened in a splitscreen with no border instead of fullscreen. Check the view mode when cycling between views and resize parent dimensions accordingly. ok op@


1c5e5faa63 Thomas Adam

alias C-b/C-f to scroll page back/forward with b/f

Suggested by naddy. Remap 'f'ullscreen to 'F', and blame view key maps 'b' and 'B' to 'c' and 'C', respectively, per stsp's and naddy's suggestion. While here, remove trailing whitespace. ok naddy@


016bfe4bc2 Thomas Adam

use the commitid in the patch diff3 conflict header

suggested by and ok stsp@


0f76ab831b Thomas Adam

got patch: use diff3 to merge the changes

Parse the "blob -" metadata in diffs produced by 'got diff' and use the original file for patching. Then, use the diff3 with the current version of the file to merge the differences. This solves many failures automagically or at least turns them into a conflict. ok/improvements stsp@


2d9b683740 Thomas Adam

patch_file: fill tmp with the patched file even in nop mode

future work with diff3 merge will need the fully patched file even in the nop mode ok stsp@


2249fadd87 Thomas Adam

patch_file: move file ownership to parent

ok stsp@


e16a78c2dd Thomas Adam

bump version number


5328fb4f56 Thomas Adam

CHANGES for 0.72