summaryrefslogtreecommitdiff
path: root/etc/committer.scm.in
Commit message (Collapse)AuthorAge
* etc: Break long lines in commit messages.Ricardo Wurmus2021-05-04
| | | | | * etc/committer.scm.in (break-string): New procedure. (change-commit-message): Use it.
* etc/committer: Add missing newline.Morgan Smith2021-04-12
| | | | | | * etc/committer.scm.in (main): Add newline to message. Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
* etc/committer: Use git plumbing instead of porcelain.Morgan Smith2021-04-12
| | | | | | | * etc/committer.scm.in (diff-info): Use "git diff-files" instead of "git diff". (old-sexp): Use "git cat-file" instead of "git show". Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
* etc/committer: Disable diff colors.Ricardo Wurmus2021-04-08
| | | | | | Reported by: morgansmith on IRC. * etc/committer.scm.in (diff-info): Invoke "git diff" with "--no-color".
* etc/committer: Recompute hunks before processing changes.Ricardo Wurmus2021-04-08
| | | | | * etc/committer.scm.in (main): Re-evaluate diff-info after processing insertions.
* etc/committer: Record minimal context for hunks to avoid problems.Ricardo Wurmus2021-04-08
| | | | | | | | | | | | 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: Define delay duration as a variable.Ricardo Wurmus2021-04-08
| | | | | * etc/committer.scm.in (%delay): New variable. (main): Use it.
* etc/committer: Handle package additions.Ricardo Wurmus2021-04-08
| | | | | | | | | | | | | * etc/committer.scm.in (<hunk>)[diff]: Rename this field... [diff-lines]: ...to this. [definition?]: New field. (hunk->patch): Join diff lines. (diff-info): Do not join diff lines; record whether a hunk is a new definition. (commit-message): Rename this procedure... (change-commit-message): ...to this. (add-commit-message): New procedure. (main): Handle new package definitions before changes.
* etc: committer: Use EQUAL? instead of EQ? for differences.Ricardo Wurmus2020-10-06
| | | | | * etc/committer.scm.in (commit-message): Use EQUAL? instead of EQ? to compute differences because not all inputs may be symbols; some could be expressions.
* etc: Add committer script.Ricardo Wurmus2020-06-16
* etc/committer.scm.in: New file. * configure.ac: Configure it.