Skip to content

Instantly share code, notes, and snippets.

@nafu
Created February 7, 2015 22:48
Show Gist options
  • 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