Andrew Helwer on Nostr: Git + line endings will be the death of me! I think I've mostly figured it out? Git ...
Git + line endings will be the death of me! I think I've mostly figured it out? Git always stores files internally as LF not CRLF, unless you specify otherwise in a .gitattributes file committed to the repo, or have set your personal core.eol config setting otherwise. Also, if the file contains a mixture of LF and CRLF git will store it as that mixture internally. I'm pretty sure.
#git
Published at
2024-02-09 14:12:44Event JSON
{
"id": "3723e41abe9502efc3c3365a2e35b237d64435097b4c939e60bf2157bb45e724",
"pubkey": "6235fe36d733665c235dbec5983d768400cdb414ea18e0633cfe9d9c1ac6b02d",
"created_at": 1707487964,
"kind": 1,
"tags": [
[
"t",
"git"
],
[
"proxy",
"https://fosstodon.org/users/ahelwer/statuses/111901931227543973",
"activitypub"
]
],
"content": "Git + line endings will be the death of me! I think I've mostly figured it out? Git always stores files internally as LF not CRLF, unless you specify otherwise in a .gitattributes file committed to the repo, or have set your personal core.eol config setting otherwise. Also, if the file contains a mixture of LF and CRLF git will store it as that mixture internally. I'm pretty sure.\n\n#git",
"sig": "574f74574dd1b78b19a8e873859157be1a15c64ca8006371ec5bd76c9a1f77001f3c00d6ec5a17904020e6249d8a779daa5e99882ff3ac4426186ee3ff113589"
}