Created
February 7, 2015 22:48
-
-
Save nafu/3554d167024431c91b5d to your computer and use it in GitHub Desktop.
GitHubのCompare View URLsから比較対象のSHA1を抽出する ref: http://qiita.com/nafu/items/7177c8818f00bc0fcdbd
This file contains 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
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