Commits
- 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
- Commit:
8f4e3da96c5f4996c58dc6276417edf32c9589aa
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
add regress for new got log -d switch
ok stsp@
- Commit:
3846622fc49b9a60aeee751320ed58ac58d38ef6
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
plug leak of got_diffreg_result on output failure
Move 'done' labels up so that if got_diffreg_output() fails we still call
got_diffreg_result_free() instead of jumping straight over it.
ok + fix from stsp@
- Commit:
5191b70b5b2e123aadd88aeafe2e2cfc0958c327
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
got: implement diffstat for got log and tog diff view
Add new got_diff_blob_cb() implementation to compute added/removed line metrics
for a given diff. This enables displaying a diffstat with 'got log -d'. As per
suggestion from stsp, change tog diff view to display the diffstat by default.
ok stsp@
- Commit:
17c726049a0c49099ef0a44190264fa4b6b037fa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
backout 169b163113a6db9878c9166aa05fbd30d05eb832
pushed by mistake, wasn't reviewed.