Skip to content

Improvements to tests and docs for .gitattributes eol

brian m. carlson git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 10 repliesIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* Correct documentation inaccuracy with respect to text=auto.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2t0027: add tests for eol without text in .gitattributest/t0027-auto-crlf.sh+6 -00 replies
2/2docs: correct documentation about eol attributeDocumentation/gitattributes.txt+7 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Improvements to tests and docs for .gitattributes eol

I was answering a question on StackOverflow recently about the interaction between text=auto and eol, and someone pointed out to me that what I had written, which was based on the documentation, was not correct as of Git 2.10 (and more specifically 6523728499 ("convert:
unify the "auto" handling of CRLF", 2016-06-28)).

When I set out to document the behavior correctly, I ran into the fact that the tests, where I looked for examples of how this behaves, didn't have any tests for some of these cases, and so I had some trouble documenting this clearly and accurately. So this series basically just adds some tests for existing behavior so we don't change it (and so I could figure out how it works) and then updates the documentation accordingly.

Changes from v1:
* Correct documentation inaccuracy with respect to text=auto.

brian m. carlson (2):
t0027: add tests for eol without text in .gitattributes
docs: correct documentation about eol attribute

 Documentation/gitattributes.txt | 12 +++++++-----
 t/t0027-auto-crlf.sh            |  6 ++++++
 2 files changed, 13 insertions(+), 5 deletions(-)