github でプルリクの diff からスペースのみの変更行を除去する方法

この記事では github でプルリクの diff からスペースのみの変更行を除去する方法を紹介する。

機能追加に加えてリファクタリングもちょっとやったりした diff を見る際に非常に役に立つ。

github でプルリクの diff からスペースのみの変更行を除去する方法

方法は非常に簡単で diff が表示されるページの URL 末尾に以下を追加するだけ。

?w=

是非お試しを。

以下に挙げた Pull Request などを見ると ?w= の効果が分かるだろう。

https://github.com/laravel/laravel/pull/2425/files
https://github.com/laravel/laravel/pull/2425/files?w=

https://github.com/robertdavidgraham/masscan/pull/32/files
https://github.com/robertdavidgraham/masscan/pull/32/files?w=

https://github.com/sixthsense/sixthsense/pull/16/files
https://github.com/sixthsense/sixthsense/pull/16/files?w=

以上。

関連記事

git branch -a で削除されたリモートブランチを表示しないようにする方法 (git fetch –prune)
Xcode の .gitignore 設定
プログラミングする際にレシピ本や参考書などの本を固定したい!

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

コメントフィード

トラックバックURL: http://monopocket.jp/blog/git/3046/trackback/