<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/.gitattributes, branch v2.50.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.50.1</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.50.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2025-03-29T01:31:19Z</updated>
<entry>
<title>merge-file doc: set conflict-marker-size attribute</title>
<updated>2025-03-29T01:31:19Z</updated>
<author>
<name>Phillip Wood</name>
<email>phillip.wood@dunelm.org.uk</email>
</author>
<published>2025-03-28T14:45:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d3b5832381c42ba3dfd79b18dea035bcc995b10a'/>
<id>urn:sha1:d3b5832381c42ba3dfd79b18dea035bcc995b10a</id>
<content type='text'>
When committing a conflict resolution for a merge containing
1f010d6bdf7 (doc: use .adoc extension for AsciiDoc files, 2025-01-20)
my pre-commit hook failed because "git diff --check" thought there was
a left over conflict marker in "merge-file.adoc". Fix this by setting
the "conflict-marker-size" attribute as we do for all the other
documentation files that contain example conflict markers.

Signed-off-by: Phillip Wood &lt;phillip.wood@dunelm.org.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>.gitattributes: more *.txt -&gt; *.adoc updates</title>
<updated>2025-03-03T21:49:19Z</updated>
<author>
<name>Todd Zullinger</name>
<email>tmz@pobox.com</email>
</author>
<published>2025-03-03T20:44:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=33af5a333416317f5d1fe0c8c9f980617a413aa8'/>
<id>urn:sha1:33af5a333416317f5d1fe0c8c9f980617a413aa8</id>
<content type='text'>
All Documentation files now end in .adoc.  Update the entries for
git-merge.adoc, gitk.adoc, and user-manual.adoc to properly set the
conflict-marker-size attribute.

Signed-off-by: Todd Zullinger &lt;tmz@pobox.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Remove obsolete ".txt" extensions for AsciiDoc files</title>
<updated>2025-01-21T20:56:10Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2025-01-20T01:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd98f54f30606a2afc05892bbd0185648311963e'/>
<id>urn:sha1:dd98f54f30606a2afc05892bbd0185648311963e</id>
<content type='text'>
Since we no longer have any AsciiDoc files that end in ".txt", don't
modify them with .gitattributes or ignore them with .gitignore.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitattributes: mark AsciiDoc files as LF-only</title>
<updated>2025-01-21T20:56:05Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2025-01-20T01:56:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ed4cf6e8e29bebb9324ba1a400a6c07513f2d642'/>
<id>urn:sha1:ed4cf6e8e29bebb9324ba1a400a6c07513f2d642</id>
<content type='text'>
In a future commit, we'll move the AsciiDoc documentation files to the
".adoc" extension rather than the extension ".txt".  We need these files
to use only LF because they are read by generate-cmdlist.sh using the
read builtin.

If we allow CRLF here, the CR at the end of the line is treated as part
of the synopsis, since a POSIX shell doesn't consider it special like
LF.  In that case, we generate synopsis strings in C that contain a CR,
which the compiler does not like because it believes that the double
quote string terminator is missing, and as a consequence, compilation
fails.

Because we rely on LF-only endings here to compile successfully and we
want Git to continue to be able to compile on Windows, mark these files
as LF-only in the .gitattributes file.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>.gitattributes: include `text` attribute for eol attributes</title>
<updated>2023-02-06T21:57:08Z</updated>
<author>
<name>Philip Oakley</name>
<email>philipoakley@iee.email</email>
</author>
<published>2023-02-03T12:59:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1f34e0cd3d799acb5118b3276dde389821bffdd4'/>
<id>urn:sha1:1f34e0cd3d799acb5118b3276dde389821bffdd4</id>
<content type='text'>
The standard advice for text file eol endings in the .gitattributes file
was updated in e28eae3184 (gitattributes: Document the unified "auto"
handling, 2016-08-26) with a recent clarification in 8c591dbfce (docs:
correct documentation about eol attribute, 2022-01-11), with a follow
up comment by the original author in [1] confirming the use of the eol
attribute in conjunction with the text attribute.

Update Git's .gitattributes file to reflect our own advice.

[1] https://lore.kernel.org/git/?q=%3C20220216115239.uo2ie3flaqo3nf2d%40tb-raspi4%3E.

Signed-off-by: Philip Oakley &lt;philipoakley@iee.email&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>CoC: explicitly take any whitespace breakage</title>
<updated>2021-01-04T17:44:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-01-04T17:43:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ffd27e6cb24c6f4a34204cbfbb26e6612689d1f4'/>
<id>urn:sha1:ffd27e6cb24c6f4a34204cbfbb26e6612689d1f4</id>
<content type='text'>
We'll keep this document mostly in sync with the upstream; let's
help "git am" and "git show" by telling them that they may introduce
what we may consider whitespace errors.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Mark .bat files as requiring CR/LF endings</title>
<updated>2019-06-20T21:03:05Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2019-06-19T21:05:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a5bdf9fdf1f6fe566f206097df321f28fe1593e3'/>
<id>urn:sha1:a5bdf9fdf1f6fe566f206097df321f28fe1593e3</id>
<content type='text'>
Just like the natural line ending for Unix shell scripts consist of a
single Line Feed, the natural line ending for (DOS) Batch scripts
consists of a Carriage Return followed by a Line Feed.

It seems that both Unix shell script interpreters and the interpreter
for Batch scripts (`cmd.exe`) are keen on seeing the "right" line
endings.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ds/hash-independent-tests-fix' into maint</title>
<updated>2018-12-15T03:24:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-12-15T03:24:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3f8c27c369833ac0eb473cadbec8c9deb0ee311b'/>
<id>urn:sha1:3f8c27c369833ac0eb473cadbec8c9deb0ee311b</id>
<content type='text'>
Test portability fix.

* ds/hash-independent-tests-fix:
  .gitattributes: ensure t/oid-info/* has eol=lf
</content>
</entry>
<entry>
<title>.gitattributes: ensure t/oid-info/* has eol=lf</title>
<updated>2018-12-14T03:53:06Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-12-11T20:35:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fc767afe77ee0e1bca50d86c8ec1277ea473b1bc'/>
<id>urn:sha1:fc767afe77ee0e1bca50d86c8ec1277ea473b1bc</id>
<content type='text'>
The new test_oid machinery in the test library requires reading
some information from t/oid-info/hash-info and t/oid-info/oid.

The logic to read from these files in shell uses built-in "read"
command, which leaves CR at the end of these text files when they
are checked out with CRLF line endings, at least when run with bash
shipped with Git for Windows.  This results in an unexpected value
in the variable these lines are read into, leading the tests to
fail.

Mark them to be checked out always with the LF line endings.

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>build: fix broken command-list.h generation with core.autocrlf</title>
<updated>2018-11-12T07:39:17Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-11-10T18:23:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=54709d520466d6e1d2feab6499a3fc6bf348e32a'/>
<id>urn:sha1:54709d520466d6e1d2feab6499a3fc6bf348e32a</id>
<content type='text'>
The script generate-cmdlist.sh needs input text files in UNIX line
ending to work correctly. It's been fine even with core.autocrlf set
because Documentation/git-*.txt is forced LF conversion.

But this leaves out gitk.txt and also Documentation/*config.txt that
recently becomes new input for this script. Update the attribute file
to force LF on all *.txt files to be on the safe side.

For more details, please see 00ddc9d13c (Fix build with
core.autocrlf=true - 2017-05-09)

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
