Commits
- Commit:
ae7c1b785440d9b4e2289d935ca85725f45680f1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a gotd session process, split off from the parent process
The new session process is able to manipulate files in the repository
and keeps track of the read/write client session state.
The parent process now restricts its view of the filesystem to the
absolute path stored in argv[0], and combines this with unveil "x"
on this path. As a result the parent process can only re-exec itself.
small tweaks + ok op@
- Commit:
75b17c2a7d14fc0476cba0375a5a031cf0c13a00
- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress: strip trailing / from GOT_TEST_ROOT
otherwise most test fails because of double "/" ending in paths and
tricking some check into thinking that's failed.
ok jamsek stsp
- Commit:
34d80a0ff3357761ddb975a1a96d3ee795218e41
- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress: use `local' for some variables
- Commit:
6b37f13aa48dd88d4cc6c8176104a3101d7a260c
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
add regress for 'got diff -d' and minor output fix
Ensure an actual file path is displayed in the 'got diff -d -c commit path ...'
case when one of the specified paths is a deleted file. Prior to this, the
unhelpful "/dev/null" label was shown instead. Includes some copypasta fixes
noted by op.
ok stsp@ op@
- Commit:
d8bacb933720b8819f0c4e76b004775aa1885b9b
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
got: minor refactor of got_pathlist_free() API
Accept flag parameter to optionally specify which pointers to free. This saves
callers looping through the list to free pointers.
ok + fix stsp@
- Commit:
9114dd430297e408815019c3bc1df29ba10a9fb8
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
fix uninitialised fildes variables in libexec helpers
Reviewed and uncovered as part of the diff in the forthcoming commit
(pathlist API refactor).
ok stsp@
- Commit:
a76e88e58fb716d5dded83442b153b60687283cb
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
got: expand diffstat -d option to 'got diff'
Like got log -d, add the switch to 'got diff' to display a diffstat of changes;
as per stsp's suggestion, we always include diff output with the diffstat.
Disabled in gotwebd (for now :) Includes tweaks from op@
ok stsp@
- Commit:
5dd8d22b08edd56b5b81f36643ab026dd6dc5047
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tweak a gotd regress test to cover incremental 'got fetch'
Previously the gotd tests were only running fresh clones.
- Commit:
3a975a9fcbb052d6cbf4d9bc062683250a23f466
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix tempfile handling in gotd's got_object_raw_open()
There was a bug where we reused a file stored in *outfd from a
previous call, resulting in a raw object backed by a file but
with tempfile_idx -1. This then caused bad confusion during
deltification. Fix this by passing tempfd to read_raw() functions
and only setting *outfd in case it is actually required, and
returning tempfd to the repository tempfile pool otherwise.
ok tracey
- Commit:
dc07f76c4f8d4418ce30fd4eb087756fe9fb6ded
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: templateify gotweb_render_tag
ok tracey@
- Commit:
067396e6118227d9aa15a49c7d49238c0fff8d94
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: templateify gotweb_render_tags
ok tracey@
- Commit:
60c140aebbd1069094e75d8358cb305bc305b7f8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use a caller-specified size limit for mapped files in got_object_raw_alloc()
Without this we end up being confused about whether a raw object has
been mapped into memory, leading to crashes.
ok op@
- Commit:
e98a81e6856357207df4b28256b3f472b90f0408
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
adjust a misleading error message in got_object_raw_alloc()
ok op@
- Commit:
95bdb85df1b522e11e264cba3c300f919cde4503
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix *size not being passed out of read_packed_object_raw()
ok op@
- Commit:
0b3f028dffa4ecc7aa72dc9132d53e9d056cc36f
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: add mutt-like =/* keymaps as home/end aliases
Also, separate g/G from home/end in the manual and runtime help text as only
the former accept a prefixed count modifier. Based on initial diff from Mikhail.
ok stsp@
- Commit:
243a8f150f5f79c7530b415ca9df09bdbebd0cf9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
util/got-build-regress.sh: simplify lockfile cleanup
trap on EXIT too so the lockfile is deleted on quit (both successful and
not.) While here simplify a cd too.
ok stsp@
- Commit:
de9bfe528565e8074ae67514ca6f3512aae41b67
- From:
- Omar Polo <op@omarpolo.com>
- Date:
util/got-build-regress.sh: switch from getopt(1) to getopts
ok stsp@
- Commit:
6b5e61245844733fe2df78892399d5956f422311
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
show gotd process names in stderr debug logs, too; it is getting too confusing
- Commit:
9b7f22a6148eb14af6e59de120bb5b1dd0e05469
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
call realpath() during early startup in gotd's parse.y
This ensures that all repositories exist when the process is first started.
It will also help to avoid an "rpath" pledge promise in a future gotd which
uses a separate session process, by avoiding realpath() calls while starting
new processes.
- Commit:
e34d12854902b472e38f40dbc4e1e44acf093240
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not treat nonexistent repositories as a fatal error in gotd
- Commit:
49a1ae4b7fbd435b06a58d71186f4675d399e2c7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix 'got rebase' not detecting an out-of-date work tree in some cases
ok jamsek, op
- Commit:
dae92a245f6e4d18c4c75048d6ca667d78083cc4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in got.1, update list of commands which refuse to run during rebase/histedit
- Commit:
1a99e0b4097b26cac736de07239a3be7589a48f7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
show from: and via: headers on consecutive lines in 'got log' and 'tog log'
ok jamsek
- Commit:
d651dcfa6fe871c93d967b1b741d2ad4bbb9e2c2
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Mark Jamsek <mark@jamsek.dev>
- Date:
add -d switch to log usage and sort lexicographically
patch by Josiah Frentsos
- Commit:
5763426aa30e7fbf05748c70f44f7b435fcb511d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress: replace echo \n with printf and heredoc
echo \n is not really portable. Not that it matters since the regress
suite is already using non-POSIX features (like `local'). However, it's
the only place using it and easy to fix.
ok jamsek