Only save history if the commit message isn't empty