hub.sr.ht/hubsrht
Robin Jarry a9f72b5a59 git: add function to parse message trailers
This is a pure python implementation of the message trailer parsing
algorithm in git (and libgit2). It is intended for use on finalized
commit messages only. Lines starting with comments are not ignored.

The function returns a list of pairs (name, value) where name is the
name of the trailer. Trailer values may span over multiple lines.

Link: https://git-scm.com/docs/git-interpret-trailers
Link: https://github.com/git/git/blob/master/trailer.c
Link: https://github.com/libgit2/libgit2/blob/main/src/trailer.c
Signed-off-by: Robin Jarry <robin@jarry.cc>
2021-11-29 10:52:31 +01:00
..
alembic Syncronize nullable constraints with service policy 2021-01-18 15:24:59 -05:00
blueprints Remove popular tags 2021-11-28 11:26:59 +01:00
templates Remove popular tags 2021-11-28 11:26:59 +01:00
types Syncronize nullable constraints with service policy 2021-01-18 15:24:59 -05:00
app.py Allow trailing slashes on some routes 2020-04-29 10:46:05 -04:00
builds.py Ignore webhooks from someone else's build 2021-02-20 09:53:43 -05:00
decorators.py Implement featured projects 2020-04-28 14:08:56 -04:00
oauth.py Initial commit 2020-03-24 10:26:15 -04:00
projects.py Make project names match [A-Za-z0-9._-]+ 2021-08-11 09:41:50 +02:00
services.py trackers: configure with visibility 2021-10-29 10:55:05 +02:00
trailers.py git: add function to parse message trailers 2021-11-29 10:52:31 +01:00