Difference between
modified post 7aa8 by Anonymous on Wed 1st Nov 2023 13:31
original post bd981438 by Anonymous on Tue 17th Oct 2023 01:09
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | # | |
| 2 | - | # git only add non-whitespace changes | |
| 2 | + | # git only add non-cr-at-eol changes | |
| 3 | 3 | # | |
| 4 | 4 | # Needed in case of a source file with mixed CR/CR-LF endings | |
| 5 | 5 | git diff >../backup.diff | |
| 6 | - | git diff -w | git apply --cached --ignore-whitespace | |
| 6 | + | git diff --ignore-cr-at-eol | git apply --cached --ignore-whitespace |
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
rovema.kpaste.net RSS