update diff previous version and amend commit