LoginSignup
0
1

More than 5 years have passed since last update.

PRのdiff/patchがブラウザで簡単に見れた

Last updated at Posted at 2017-05-08

こんな感じに👇PRの下の方に「ProTip!」ってでてくるじゃないですか。

スクリーンショット 2017-05-08 10.50.49.png

PRのアドレス👇に
https://github.com/org_name/repo_name/pull/1

.diffってつけると、
https://patch-diff.githubusercontent.com/raw/org_name/repo_name/pull/1.diff?token=TOKEN

.patchってつけると、
https://patch-diff.githubusercontent.com/raw/org_name/repo_name/pull/1.patch?token=TOKEN

にリダイレクトして、diffの内容が見れることに気づいた。
PRが大きくなり過ぎて、表示に時間がかかる時にサクッと表示できて便利みたい。

追記

@tadsan さんから

本領はgit amで適用できるパッチを簡単に作れることですね ヾ(〃><)ノ゙

とご指摘いただきました。ありがとうございます。
git am使ったことなかったので5.3 Git での分散作業 - プロジェクトの運営を読んでみた。
パッチの運用もっと使っていけば幸せになれそう。

0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1