Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
braineo committed Aug 26, 2024
1 parent 53b9ba4 commit caaa214
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-cliff-core/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,18 +313,18 @@ impl Repository {
/// Decide whether to include tag
///
/// `head_commit` is the `latest` commit to generate changelog. It can be a
/// branch head or a detached head. `commit` is a tagged commit. If the
/// branch head or a detached head. `tag_commit` is a tagged commit. If the
/// commit is in the descendant graph of the head_commit or is the
/// head_commit itself, Changelog should include the tag.
fn should_include_tag(
&self,
head_commit: &Commit,
commit: &Commit,
tag_commit: &Commit,
) -> Result<bool> {
Ok(self
.inner
.graph_descendant_of(head_commit.id(), commit.id())? ||
head_commit.id() == commit.id())
.graph_descendant_of(head_commit.id(), tag_commit.id())? ||
head_commit.id() == tag_commit.id())
}

/// Parses and returns a commit-tag map.
Expand Down

0 comments on commit caaa214

Please sign in to comment.