Skip to content

Instantly share code, notes, and snippets.

@nafu
Created February 7, 2015 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nafu/3554d167024431c91b5d to your computer and use it in GitHub Desktop.
Save nafu/3554d167024431c91b5d to your computer and use it in GitHub Desktop.
GitHubのCompare View URLsから比較対象のSHA1を抽出する ref: http://qiita.com/nafu/items/7177c8818f00bc0fcdbd
var="https://github.com/user/repo/compare/049508ce0e26...286b18317092"
echo ${var#*compare/}
# 049508ce0e26...286b18317092
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment