git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'eol' documentation confusion
@ 2015-06-21 14:04 Robert Dailey
  2015-06-21 14:16 ` Robert Dailey
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Dailey @ 2015-06-21 14:04 UTC (permalink / raw)
  To: Git

Upon inspection of the gitattributes documentation page here:
https://git-scm.com/docs/gitattributes

When comparing the documentation for 'text' with 'eol', I see the
following missing explanations for 'eol':

* eol
* -eol

Maybe the fact that these are missing means they are not valid to use.
There is also the issue that `text` usually controls EOL anyway. Is
there ever any reason to set eol in a way differently than explained
in the documentation (that is, `eol=lf` or `eol=crlf`)?

For example, what if you want a file to be treated as text BUT you do
not want it to perform EOL normalization at all. Could you do this?

    foo.txt text -eol

Just at first glance, this to me would mean line endings on checkin
and checkout are not touched (CRLF could be checked in). Is this
possible?

What about setting `eol` but not `text`?

Honestly it seems like `eol` is just a supplementary setting for
`text` and was never intended to be used in ways that are
undocumented. Some explanation to help uncloud this would help, or
maybe I missed something in the documentation that explains this.

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

end of thread, other threads:[~2015-06-25 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-21 14:04 'eol' documentation confusion Robert Dailey
2015-06-21 14:16 ` Robert Dailey
2015-06-22  6:26   ` Torsten Bögershausen
2015-06-22 16:11     ` Junio C Hamano
2015-06-25 15:31       ` 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).