Description
If a git commit is created with --allow-empty (which is usually not recommended, see manual) this is not displayed correctly in the log detail. This is because the detail is retrieved from git diff-tree, which returns nothing.
This is an edge case, the git manual strongly suggests that you don't use --allow-empty. A user suggested that some changes to git in future might make this more common though, so if that's the case we may want to deal with this. git diff-tree was picked because it extracts the most amount of information most reliably in all situations except this one, may need to just use a fallback in this rare case.