etc/committer: Record minimal context for hunks to avoid problems.
authorRicardo Wurmus <rekado@elephly.net>
Thu, 8 Apr 2021 01:00:57 +0000 (03:00 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Thu, 8 Apr 2021 01:10:14 +0000 (03:10 +0200)
commit43fb6b765d82ea5acfdc83f61472d99594ee1cbf
tree47eb85831b21244f52255257b38bffe3e3d30fc9
parent56270c1275d8dcdec80c04c032079b694204052a
etc/committer: Record minimal context for hunks to avoid problems.

With zero context new definitions would be applied to the wrong location in
the file.  More context lines lead to larger hunks, though, so we use just one
line of context.

* etc/committer.scm.in (diff-info): Invoke "git diff" with one line of
context.
[info]: Merge line break and first line.
(lines-to-first-change): New procedure.
(old-sexp, new-sexp): Use it.
etc/committer.scm.in