Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Avoid processing a single commit multiple times#1058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
smortex wants to merge1 commit intogithub-changelog-generator:master
base:master
Choose a base branch
Loading
fromsmortex:avoid-processing-a-single-commit-multiple-time
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletionlib/github_changelog_generator/octo_fetcher.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -386,9 +386,15 @@ def commits_in_tag(sha, shas = Set.new)
queue = [current]
while queue.any?
commit = queue.shift
# If we've already processed this sha, just grab it's parents from the cache
if @commits_in_tag_cache.key?(commit[:sha])
# If we've already processed this sha in a previous run, just grab
# its parents from the cache
shas.merge(@commits_in_tag_cache[commit[:sha]])
elsif shas.include?(commit[:sha])
# If we've already processed this sha in the current run, stop there
# for the current commit because its parents have already been
# queued/processed. Jump to the next queued commit.
next
else
shas.add(commit[:sha])
commit[:parents].each do |p|
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp