Make diff-hl-amend-mode work correctly