Go to file
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
.builds .builds/alpine.yml: upgrade to 3.14 2021-08-04 08:26:30 +02:00
hubsrht git: add function to parse message trailers 2021-11-29 10:52:31 +01:00
scss Improve btn-white on dark mode 2020-12-16 10:18:15 -05:00
.gitignore Initial commit 2020-03-24 10:26:15 -04:00
LICENSE Initial commit 2020-03-24 10:26:15 -04:00
Makefile Initial commit 2020-03-24 10:26:15 -04:00
README.md Initial commit 2020-03-24 10:26:15 -04:00
config.example.ini Add config.example.ini 2020-05-04 10:55:26 -04:00
hubsrht-initdb add database stamp for core.sr.ht 2020-08-11 10:48:01 -04:00
hubsrht-migrate hubsrht-migrate: remove (broken) core.sr.ht call 2020-07-14 09:32:19 -04:00
run.py Initial commit 2020-03-24 10:26:15 -04:00
setup.py Add pyyaml dependency 2021-04-02 13:56:19 -04:00
static Initial commit 2020-03-24 10:26:15 -04:00

README.md

This repository contains the code for the sr.ht project hub. For instructions on deploying or contributing to this project, visit the manual here:

https://man.sr.ht/hub.sr.ht/installation.md