Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_whitespace [2018/06/11 11:23] – [git diff] rpjday | git_whitespace [2019/03/05 18:15] (current) – [git blame] rpjday | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | A moderately (dis)organized list of features related to dealing with whitespace issues in Git, in no particular order. | + | A moderately (dis)organized list of features related to dealing with whitespace issues in Git, in no particular order. |
| + | |||
| + | ===== config options ===== | ||
| + | |||
| + | ==== apply.ignoreWhitespace ==== | ||
| + | ==== apply.whitespace ==== | ||
| + | ==== core.whitespace ==== | ||
| + | |||
| + | < | ||
| + | $ git config --global core.whitespace \ | ||
| + | trailing-space, | ||
| + | </ | ||
| + | ==== core.eol ==== | ||
| + | ==== core.safecrlf ==== | ||
| + | ==== core.autocrlf ==== | ||
| + | |||
| + | Setting this variable to " | ||
| + | |||
| + | ===== git apply ===== | ||
| + | |||
| + | TO DO. | ||
| + | |||
| ===== git diff ===== | ===== git diff ===== | ||
| Line 116: | Line 138: | ||
| · | · | ||
| </ | </ | ||
| + | |||
| + | ===== git blame ===== | ||
| + | |||
| + | < | ||
| + | -w | ||
| + | Ignore whitespace when comparing the parent’s version and the child’s to find | ||
| + | where the lines came from. | ||
| + | </ | ||
| + | |||
| + | ===== git stripspace ===== | ||
| + | |||
| + | < | ||
| + | $ man git-stripspace | ||
| + | </ | ||
| + | |||