Support reword in log tab & refactor external editor calls
No more do we have to go though an interactive rebase in which the exact commit reference must be known, where we then must choose 'reword' on the correct commit.
This PR provides the reword functionality on the log(commit list) tab, simply press 'r' on the commit, type in the new message and press enter to change it.
This does not do an interactive rebase in git2rs, rather a slightly more complex rebase operation which achieves the same thing (there is no such thing as an interactive rebase in git2rs/libgit2) This does not work on the first commit because it has no parent.
Linked to #32
This does work, but it doesn't keep it's commit selection prior to the change, it just goes to the top.
Fixed
With this, should the character count in the reword input box be shown? e.g, if the user wants to know if the commit message length?
It's true for commit message, I'll set the show character count to true.
Updated to master.
superseded by #672
This has nothing to do with #672? This is about rewording commits in the log tab, nothing to do with searching.
Perhaps you meant to close #506? (Feel free, it has been superceded).
was too late, of course I meant to close #506
@WizardOhio24 for this to be reviewed it needs to be up to date
going back to draft in the meantime. change it back to review once you think its ready 👍
closing in favour of https://github.com/extrawurst/gitui/pull/1553