Created
October 30, 2024 06:52
-
-
Save njtierney/46ddd2c68fee57169105045cc7d25d77 to your computer and use it in GitHub Desktop.
Helper for comparing git commits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compare_git_commits <- function(repo, sha1, sha2){ | |
# https://github.com/github-linguist/linguist/compare/f75c570..3391dcc | |
glue::glue("{repo}/compare/{sha1}..{sha2}") | |
} | |
compare_greta_commits <- function(sha1, sha2){ | |
compare_git_commits(repo = "https://github.com/greta-dev/greta/", | |
sha1 = sha1, | |
sha2 = sha2) | |
} | |
compare_greta_commits("4c0de6239dd87630d1ae5ee5f4dcae9e317682be", | |
"cb14e95b91129a821585b8f4c070559df3a42b68") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment