How could I find lengthy commit messages?

I have this idea that the more keystrokes expended to decorate a commit, the more likely it is that useful thoughts are embedded in that commit. How might I find these? A commit with a single line, merely a subject, is not worth seeking out:

ran updated format rules

Whereas a commit like this might be worth encountering:

changed fetch of base64 images

Changed the way we return base64 images when fetching for content because when we clear out the deleted image form s3 and update the content with a empty key it causes an exception trying fetch base64 images with an invalid key.

This is because the actual database delete happens after we have returned response to MSC. Ideally we could move the delete to project theseus and then no longer do the db call on the MSC side. For now this should work.

How could I retrieve a list of such commits from the git log?


Solution 1:

git rev-list --all | git cat-file --batch-check | sort -nk3

or instead of the sort you could do something like

git rev-list --all | git cat-file --batch-check \
| awk '$3 > 300 {print $1}' | git log --no-walk --stdin