From 1bacc7f194f70fea5378d2609dd72e64eb62bdfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 26 Mar 2022 22:45:24 +0300 Subject: [PATCH] fix(changelog): allow custom commit range while prepending (fixes #68) --- git-cliff/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-cliff/src/lib.rs b/git-cliff/src/lib.rs index c58d863980..634108dd5c 100644 --- a/git-cliff/src/lib.rs +++ b/git-cliff/src/lib.rs @@ -110,7 +110,7 @@ pub fn run(mut args: Opt) -> Result<()> { } if args.prepend.is_some() { config.changelog.footer = None; - if !(args.unreleased || args.latest) { + if !(args.unreleased || args.latest || args.range.is_some()) { return Err(Error::ArgumentError(String::from( "'-u' or '-l' is not specified", )));