mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-24 05:40:38 +08:00
There was an issue where the trailers were not properly separated from the commit message itself. In fact, a new line is not added if there are not trailers either. Add a fix to add a newline after the commit message. Also adding test cases to test 0, 1, or 2 trailers in a git commit. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
24 lines
512 B
TOML
24 lines
512 B
TOML
[package]
|
|
name = "git-commit"
|
|
version = "0.3.0"
|
|
license = "MIT OR Apache-2.0"
|
|
edition = "2021"
|
|
authors = [
|
|
"Alexis Sellier <alexis@radicle.xyz>",
|
|
"Fintan Halpenny <fintan.halpenny@gmail.com>",
|
|
]
|
|
description = "A small library for parsing, displaying and creating a git commit"
|
|
keywords = ["git", "radicle"]
|
|
|
|
[dependencies]
|
|
thiserror = "1"
|
|
|
|
[dependencies.git2]
|
|
version = "0.15.0"
|
|
default-features = false
|
|
features = ["vendored-libgit2"]
|
|
|
|
[dependencies.git-trailers]
|
|
version = "0.1.0"
|
|
path = "../git-trailers"
|