commit message from test
commit-message-from-test (cmft in short) is tiny filter program to extract possible commit messages from changed files based on test names.
My motivation for writing it was to use with tcr. While coding, I don't like to be interrupted to enter some meaningful commit description, but at the same time I don't like completly useless "working". So I came out with something in the middle: commit descriptions based on test names.
Example usage with tcr
and fzf
:
$ tcr red `git diff HEAD | cmft | fzf --print-query | tail -n 1`