TypeScript-Call-Graph icon indicating copy to clipboard operation
TypeScript-Call-Graph copied to clipboard

fix #9 by using LF line-endings

Open ensconced opened this issue 4 years ago • 5 comments

fixes #9

After merging this in, to actually see the fixed line-endings in your working tree, you'll need to clear out your working directory, and then restore everything again by doing this:

(N.B. this will clear out any uncommitted changes you have on your branch).

git rm -r ./* && git reset --hard

Then if you open bin/index.js you should see that the line-endings are just LF rather than CR+LF. I tested this in Notepad++ (View > Show Symbol > Show End of Line).

ensconced avatar Apr 10 '21 12:04 ensconced

Thank you for this contribution 🙇 Sorry it's taking a while for me to get to it 😓 I've been busy with life stuff (not bad, just time-consuming). I intend to get this merged in before the end of the year 🤞

whyboris avatar Oct 08 '21 17:10 whyboris

Thank you again for this -- I'll test it on Windows once and merge 🤝

This was a great article about the topic: https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/

I might try the command from the article git add --renormalize . 🤝

whyboris avatar Jan 04 '22 19:01 whyboris

Intending to merge/fix this problem in the coming month 🤞

whyboris avatar Jul 25 '22 19:07 whyboris

I'm hoping to catch up on updating all my repositories this winter 😅

whyboris avatar Oct 20 '22 21:10 whyboris