User configurable "Number of previous messages in commit dialog"

See #1571