whyboris / TypeScript-Call-Graph

CLI to generate an interactive graph of functions and calls from your TypeScript files
MIT License
233 stars 20 forks source link

fix #9 by using LF line-endings #10

Open ensconced opened 3 years ago

ensconced commented 3 years ago

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).

whyboris commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

whyboris commented 1 year ago

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