Skip to content

Add --print-url flag to opam update#5

Merged
tchajed merged 2 commits intomainfrom
opam-update-compare-url
Mar 6, 2026
Merged

Add --print-url flag to opam update#5
tchajed merged 2 commits intomainfrom
opam-update-compare-url

Conversation

@tchajed
Copy link
Copy Markdown
Member

@tchajed tchajed commented Mar 6, 2026

Summary

  • Add git.CompareURL() helper that generates GitHub/GitLab compare URLs from two commit hashes
  • Add --print-url flag to opam update that prints a compare URL below each upgraded package
  • URLs use the correct format for each hosting service (/compare/from...to for GitHub, /-/compare/from...to for GitLab)

Test plan

  • Run go test ./... — all tests pass
  • Run perennial-cli opam update without --print-url — output unchanged
  • Run perennial-cli opam update --print-url — compare URLs printed for each upgrade

🤖 Generated with Claude Code

tchajed and others added 2 commits March 6, 2026 07:38
When upgrading pinned dependencies, the new --print-url flag prints a
GitHub/GitLab compare URL for each upgrade, making it easy to review
what changed between the old and new commits.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tchajed tchajed merged commit 2d533c1 into main Mar 6, 2026
4 checks passed
@tchajed tchajed deleted the opam-update-compare-url branch March 6, 2026 13:42
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.

1 participant