diff mode for commits