me
/
guix
Archived
1
0
Fork 0

etc/committer: Recompute hunks before processing changes.

* etc/committer.scm.in (main): Re-evaluate diff-info after processing
insertions.
master
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
1 changed files with 3 additions and 1 deletions

View File

@ -306,6 +306,8 @@ modifying."
(usleep %delay)
(unless (eqv? 0 (status:exit-val (close-pipe port)))
(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)