]> git.ipfire.org Git - thirdparty/git.git/commit
t0027: add tests for eol without text in .gitattributes
authorbrian m. carlson <sandals@crustytoothpaste.net>
Tue, 11 Jan 2022 02:15:06 +0000 (02:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jan 2022 18:22:21 +0000 (10:22 -0800)
commitab961513c4a6bb1d65636829aa962593cfd934e9
treea234d5a71708296b8aca995879920f87256e318c
parente9d7761bb94f20acc98824275e317fa82436c25d
t0027: add tests for eol without text in .gitattributes

Right now, it isn't clear what the behavior is when the eol attribute is
set in .gitattributes but the text attribute is not.  Let's add some
tests to document this behavior in our code, which happens to be that
the behavior is as if we set the text attribute implicitly.  This will
make sure we don't accidentally change the behavior, which somebody is
probably relying on, and serve as documentation to developers.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0027-auto-crlf.sh