got: load editor with backout/cherrypick commit log messages
commitf6cd0243250112471da1212a1549007367cc32a7
authorMark Jamsek <mark@jamsek.dev>
Sat, 28 Jan 2023 04:24:55 +0000 (28 04:24 +0000)
committerThomas Adam <thomas@xteddy.org>
Sat, 28 Jan 2023 15:18:01 +0000 (28 15:18 +0000)
tree74b7b18eef444b1581ac720aace3438ccf7a8881
parent4838433d00607366f402318638f8d096a35ad012
got: load editor with backout/cherrypick commit log messages

Create new logmsg references used to populate the editor with the log messages
of backed-out and cherrypicked commits when 'got commit' is run.  We use
versioned path state heuristics during revert and commit commands in an effort
to ensure the editor is only populated with the log messages of backed-out
and/or cherrypicked commits involving paths with local changes that are being
committed. This is an implementation of an initial idea and algorithm designed
by stsp.

inputs, improvments and ok stsp@
got/got.1
got/got.c
include/got_worktree.h
lib/worktree.c