etc/committer: Recompute hunks before processing changes.
* etc/committer.scm.in (main): Re-evaluate diff-info after processing insertions.
This commit is contained in:
parent
43fb6b765d
commit
83991a34d5
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue