Skip to content

Links to GitHub ... compare page in our range-diff viewer - #2530

Merged
Urgau merged 1 commit into
rust-lang:mainfrom
Urgau:gh-range-diff-triple-dots
Oct 10, 2026
Merged

Urgau merged 1 commit into
rust-lang:mainfrom
Urgau:gh-range-diff-triple-dots

Conversation

@Urgau

@Urgau Urgau commented Oct 10, 2026

Copy link
Copy Markdown
Member

This PR changes our links to GitHub compare page by using ... (triple dots) instread by .. (double dots) in our range-diff viewer.

Fixes #2529

Comment thread src/gh_range_diff.rs Outdated
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" sizes="32x32" type="image/png" href="https://rust-lang.org/static/images/favicon-32x32.png">
<title>range-diff of {oldbase}..{oldhead} {newbase}..{newhead}</title>
<title>range-diff of {oldbase}...{oldhead} {newbase}...{newhead}</title>

@RalfJung RalfJung Oct 10, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.. is the normal git notation and I think we should keep using it in the title. GH is just being weird.

View changes since the review

@RalfJung RalfJung Oct 10, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That said, what we do here is very different from an actual git range-diff, so this is kind of confusing either way. git range-diff diffs commits against each other, whereas we diff the end-to-end diffs against each other. Both have their place (e.g. git range-diff is useless to compare a PR before and after squashing), they are just different.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is indeed a bit weird.

Reverted to displaying only .. (double dots) for now, we can change it later if it's too confusing.

@Urgau
Urgau force-pushed the gh-range-diff-triple-dots branch from 0dfedcc to 6847bb1 Compare October 10, 2026 11:28
@Urgau
Urgau added this pull request to the merge queue Oct 10, 2026
Merged via the queue into rust-lang:main with commit 0a00bc6 Oct 10, 2026
4 checks passed
@Urgau
Urgau deleted the gh-range-diff-triple-dots branch October 10, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

range-diff: diff links at the top do not show before/after diff

3 participants