Archived
1
0
Fork 0

etc/committer: Recompute hunks before processing changes.

* etc/committer.scm.in (main): Re-evaluate diff-info after processing
insertions.
This commit is contained in:
Ricardo Wurmus 2021-04-08 03:08:00 +02:00
parent 43fb6b765d
commit 83991a34d5
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -306,6 +306,8 @@ modifying."
(usleep %delay) (usleep %delay)
(unless (eqv? 0 (status:exit-val (close-pipe port))) (unless (eqv? 0 (status:exit-val (close-pipe port)))
(error "Cannot commit"))))) (error "Cannot commit")))))
(new+old+hunks changes)))))) ;; XXX: we recompute the hunks here because previous
;; insertions lead to offsets.
(new+old+hunks (diff-info)))))))
(main) (main)