Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix text files using CRLF line endings to use LF (SAP#12325)
- fix text files using CRLF line endings to use LF - avoid treating binary files as text ones so to avoid unnecessary changing their line endings, which was the case for me after cloning a fresh repo (or running `git add --renormalize .` in existing repo): ``` modified: docs/SAP Corporate Contributor License Agreement.pdf modified: docs/assets/spartacus-blue.png modified: projects/storefrontapp/src/assets/icons/icon-128x128.png` modified: projects/storefrontapp/src/assets/icons/icon-144x144.png modified: projects/storefrontapp/src/assets/icons/icon-152x152.png modified: projects/storefrontapp/src/assets/icons/icon-192x192.png modified: projects/storefrontapp/src/assets/icons/icon-384x384.png modified: projects/storefrontapp/src/assets/icons/icon-512x512.png modified: projects/storefrontapp/src/assets/icons/icon-72x72.png modified: projects/storefrontapp/src/assets/icons/icon-96x96.png modified: projects/storefrontapp/src/assets/splash/ipad_splash.png modified: projects/storefrontapp/src/assets/splash/ipadpro1_splash.png modified: projects/storefrontapp/src/assets/splash/ipadpro2_splash.png modified: projects/storefrontapp/src/assets/splash/ipadpro3_splash.png modified: projects/storefrontapp/src/assets/splash/iphone5_splash.png modified: projects/storefrontapp/src/assets/splash/iphone6_splash.png modified: projects/storefrontapp/src/assets/splash/iphoneplus_splash.png modified: projects/storefrontapp/src/assets/splash/iphonex_splash.png modified: projects/storefrontapp/src/assets/splash/iphonexr_splash.png modified: projects/storefrontapp/src/assets/splash/iphonexsmax_splash.png ``` ### Consequences for developers When it's merged to develop, those 4 files will use LF line endings: ``` .github/api-extractor-action/tsconfig.json .github/cache-builded-libs/tsconfig.json .github/cache-builded-libs/yarn.lock NOTICE.txt ``` Then when someone switches locally from develop to any other old side branch (i.e. old feature or release branch), he/she will get annoying git dirty status in his/her branch for those 4 files. There are 2 options I know how fix it: a) merge develop to your branch (good for feature branches; no-go for old release branches): ``` git add --renormalize . git merge develop git add --renormalize . ``` b) or commit those 4 files in your branch
- Loading branch information