do last commit more intelligently