Skip to content

Commit

Permalink
fix(changelog): allow custom commit range while prepending (fixes #68)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Mar 26, 2022
1 parent 1b04dbf commit 1bacc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cliff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)));
Expand Down

0 comments on commit 1bacc7f

Please sign in to comment.