Files
radicle-git/git-commit/Cargo.toml
T
Fintan Halpenny ae4e7bce59 git-commit: fix for trailer handling
If a Commit was constructed with trailers, they would not be added to
the buffer for committing.

Fix this by parsing the message by inspecting each line for a
potential trailer, if there is one then store it for later, otherwise
keep it as part of the message. This means that a message stays intact
even if a trailer that is expected to parse did not.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2022-11-04 14:45:10 +00:00

24 lines
512 B
TOML

[package]
name = "git-commit"
version = "0.2.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"