1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Update the name of the latest TIL

This commit is contained in:
jbranchaud
2016-10-21 09:01:13 -05:00
parent b445df5dbf
commit 540194450d
2 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
# Exclude Whitespace Changes From GitHub Diffs
If you run a tidy ship and use plugins like
[vim-spacejam](https://github.com/rondale-sc/vim-spacejam), then whitespace
changes cluttering up your git diffs probably isn't much of an issue.
However, if you are working with other people or messier code bases, then
you may not be so lucky. If there are a bunch of whitespace changes in a
commit, then that is going to make the diff view of a commit on GitHub
annoying, and perhaps hard, to read.
You can cut to the chase by excluding whitespace changes from GitHub's diff
view by adding `w=1` to the diff URL.
Check out [this view of the
diff](https://github.com/jbranchaud/dotfiles/commit/fad58dfda91e61972b3c28e7e967bb631140e71e)
and then [this view of the diff that excludes
whitespace](https://github.com/jbranchaud/dotfiles/commit/fad58dfda91e61972b3c28e7e967bb631140e71e?w=1).
[source](https://twitter.com/ablwr/status/789141645098938368)