git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Explanation of `eol` attribute doesn't seem correct for Windows machines
@ 2023-11-06 15:11 Hans Meiser
  2023-11-06 16:21 ` Torsten Bögershausen
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Meiser @ 2023-11-06 15:11 UTC (permalink / raw)
  To: git@vger.kernel.org

https://git-scm.com/docs/gitattributes#_eol

claims that:

---
Set to string value "crlf"

    This setting converts the file’s line endings in the working directory to CRLF when the file is checked out.
Set to string value "lf"

    This setting uses the same line endings in the working directory as in the index when the file is checked out.
---

I don't think this explanation is sufficient for files stored on Windows machines. A file might be stored with CRLF in the index. What happens then? And what happens when a file is added to the index with `core.autocrlf=input` on Windows machines?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-07 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-06 15:11 Explanation of `eol` attribute doesn't seem correct for Windows machines Hans Meiser
2023-11-06 16:21 ` Torsten Bögershausen
2023-11-07  0:23   ` Hans Meiser
2023-11-07 17:12     ` Torsten Bögershausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).