I have a bash function that gives me some relevant info based on a commit id. The usage would be
$ commit_info <commit-hash>
> Commit Hash: 074cda8
> Info: Some text
I want this info to show up when doing a git log. Ideally something like:
git log origin/master^..HEAD --graph --pretty=format:'commit: %C, Author: %an, commit info: <commit_info %h>
would then show the commit info for each commit within the git log.