etc/committer: Do not record positions when reading from git files.

This gives us a slight performance boost.

* etc/committer.scm.in (main): Disable recording of positions.
This commit is contained in:
Ricardo Wurmus 2023-09-21 16:01:30 +02:00
parent 0836af9a3b
commit 10c6387f5b
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -358,6 +358,7 @@ (define* (change-commit-message* file-name old new #:rest rest)
(_
(apply change-commit-message file-name old new rest)))))
(read-disable 'positions)
(match (diff-info)
(()
(display "Nothing to be done.\n" (current-error-port)))