diff mbox series

[bug#66138,2/4] etc/committer: Do not record positions when reading from git files.

Message ID 9c0df8930cdc415953a2dce8172edaa8944333fc.1695305549.git.rekado@elephly.net
State New
Headers show
Series [bug#66138,1/4] etc/committer: Do not recompute changes when there are no definitions. | expand

Commit Message

Ricardo Wurmus Sept. 21, 2023, 2:46 p.m. UTC
This gives us a slight performance boost.

* etc/committer.scm.in (main): Disable recording of positions.
---
 etc/committer.scm.in | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/etc/committer.scm.in b/etc/committer.scm.in
index cc3b572710..45efb68be2 100755
--- a/etc/committer.scm.in
+++ b/etc/committer.scm.in
@@ -358,6 +358,7 @@  (define (main . args)
         (_
          (apply change-commit-message file-name old new rest)))))
 
+  (read-disable 'positions)
   (match (diff-info)
     (()
      (display "Nothing to be done.\n" (current-error-port)))