Skip to content

Instantly share code, notes, and snippets.

@frosforever
Last active August 29, 2015 14:12
Show Gist options
  • Save frosforever/3687b44c2c24b56950b3 to your computer and use it in GitHub Desktop.
Save frosforever/3687b44c2c24b56950b3 to your computer and use it in GitHub Desktop.
Idea to check if commit is included in a release

Issues might be resolved and refrence a commit that has been merged, but without checking out the repo and then running git tag --contains <sha> theres no easy to tell if the commit is in a release.

  • Need to select repo
  • Get and display list of Tags/Releases/Branches
    • Multi select interested ones
  • Provide commit hash or perhaps even an issue
    • Perhaps look through issue, if closed find commit that closed it and grab that hash
  • Compare commit with tag
  • Check status in returned JSON
    • diverged or ahead -> commit is not in the branch.
    • behind or identical -> commit is in branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment