Skip to content

Instantly share code, notes, and snippets.

@suzujun
Created May 26, 2015 02:09
Show Gist options
  • Save suzujun/e3a6c82b53118b3ed1cf to your computer and use it in GitHub Desktop.
Save suzujun/e3a6c82b53118b3ed1cf to your computer and use it in GitHub Desktop.
github commit diff
javascript:(function(){var l=location.href;if(!l.match(/^https:\/\/github.com\/([0-9a-z\/-]*)\/commit\//)){alert("This page is error");return;};var a=prompt("比較対象を入力してください","develop");location.href=location.href.replace(/commit/,"compare")+"..."+a;})()
@suzujun
Copy link
Author

suzujun commented May 26, 2015

githubレポジトリ内のコミット番号差分を簡単に比較できるスクリプト
<使い方>
1)適当などこでもよいので新しいブックマークを作成する
2)1を編集でURL項目に上記javascriptをコピペする
3)githubの所定のコミット番号ページへ行き、1で作成したブックマークをクリックする
4)差分が表示される

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment