User Tools

Site Tools


git_whitespace

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_whitespace [2018/06/13 12:20]
rpjday [git rebase]
git_whitespace [2019/03/05 18:15]
rpjday [git blame]
Line 2: Line 2:
  
  A moderately (dis)organized list of features related to dealing with whitespace issues in Git, in no particular order. It's a matter of some debate whether EOL standardization is simply a subet of whitespace issues, or whether it deserves its own page.  A moderately (dis)organized list of features related to dealing with whitespace issues in Git, in no particular order. It's a matter of some debate whether EOL standardization is simply a subet of whitespace issues, or whether it deserves its own page.
 +
 +===== config options =====
 +
 +==== apply.ignoreWhitespace ====
 +==== apply.whitespace ====
 +==== core.whitespace ====
 +
 +<​code>​
 +$ git config --global core.whitespace \
 +    trailing-space,​-space-before-tab,​indent-with-non-tab,​tab-in-indent,​cr-at-eol
 +</​code>​
 +==== core.eol ====
 +==== core.safecrlf ====
 +==== core.autocrlf ====
 +
 +Setting this variable to "​true"​ is the same as setting the text attribute to "​auto"​ on all files and core.eol to "​crlf"​. Set to true if you want to have CRLF line endings in your working directory and the repository has LF line endings. This variable can be set to input, in which case no output conversion is performed.
 +
 +===== git apply =====
 +
 +TO DO.
 +
 +
  
 ===== git diff ===== ===== git diff =====
Line 124: Line 146:
     where the lines came from.     where the lines came from.
 </​code>​ </​code>​
 +
 +===== git stripspace =====
 +
 +<​code>​
 +$ man git-stripspace
 +</​code>​
 +
git_whitespace.txt ยท Last modified: 2019/03/05 18:15 by rpjday