`git test results` should have a way of printing out commit information
I like to run git-test on all my outstanding branches and then view all the results at once. When viewing the results, it would be convenient to get more context about the commits that have passed, like their commit message.
I use a pair of justfile recipes in my project. just test-all runs git test run on all branches that contain upstream/master. just test-results runs git test results on all branches that contain upstream/master.
I wrote a little utility to add commit messages to the output of git test results. But it would be more convenient if this were built in to git-test, and supported more of the --format options that git log supports.
When I put this all together, the output looks like:
❯ just test-results | test-results
Branch: optimization
4e715891d543d883e8518b1f1c3b3c424bbea7b3^{tree} known-good | Common commit on several branches.
cc4c667e4b84e67b8e3bd8cabdaad3eaedd651cd^{tree} known-bad | New optimization that doesn't work yet.
b0f8808cb5b15d20981f7eed0f0ac424d0880238^{tree} unknown | fixup! New optimization that doesn't work yet.
Branch: feature-1
4e715891d543d883e8518b1f1c3b3c424bbea7b3^{tree} known-good | Common commit on several branches.
0ef5811f11fbaccf56d3de35f6597b8b082ed153^{tree} known-good | Add feature 1.
Branch: feature-2
4e715891d543d883e8518b1f1c3b3c424bbea7b3^{tree} known-good | Common commit on several branches.
5419622989b3279632171882dcfcc4f9d88fa9f4^{tree} unknown | Add feature 2.
Attaching a screenshot to show how it can work with color, on this repository.