added an option commitDiffOpts to customize logs for revisions v2

Added in the same way as logOpts/diffOpts.
Useful to ignore whitespace changes, or to change formatting
of commit log messages.

v2 contains your suggested changes