change commit content for revert_note() and fixe some issues of diff_note function