got: implement diffstat for got log and tog diff view
commit772fcad51433f2ecbfaea38a78e02d07ed1eef7f
authorMark Jamsek <mark@jamsek.dev>
Sat, 7 Jan 2023 11:33:28 +0000 (7 11:33 +0000)
committerThomas Adam <thomas@xteddy.org>
Sat, 7 Jan 2023 15:21:02 +0000 (7 15:21 +0000)
tree095926c4f821dc37b0598594de7c7a71aafe99b1
parentad422caf47dffe852110c06c4c625af63570cfe6
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@
got/got.1
got/got.c
include/got_diff.h
lib/diff.c
tog/tog.c