Run re-search-forward for git diff with noerror=t.
This ensures the rest of git-commit-mode (e.g., run-mode-hooks) will successfully run even if no git diff was found. Signed-off-by: Adeodato Simó <firstname.lastname@example.org>
|@@ -513,7 +513,7 @@ NOTE defaults to `current-prefix-arg'."|
|"Add font lock on diff."|
|- (when (re-search-forward "^diff --git")|
|+ (when (re-search-forward "^diff --git" nil t)|
|(let ((beg (match-beginning 0)))|
|(let* ((buffer (current-buffer))|