Add option to query commit messages

This will add option for query to have commit message with default not to.