Skip to content

Instantly share code, notes, and snippets.

@njtierney
Created October 30, 2024 06:52
Show Gist options
  • Save njtierney/46ddd2c68fee57169105045cc7d25d77 to your computer and use it in GitHub Desktop.
Save njtierney/46ddd2c68fee57169105045cc7d25d77 to your computer and use it in GitHub Desktop.
Helper for comparing git commits
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