<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/.gitattributes, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2026-02-13T17:26:11Z</updated>
<entry>
<title>templates: add .gitattributes entry for sample hooks</title>
<updated>2026-02-13T17:26:11Z</updated>
<author>
<name>Phillip Wood</name>
<email>phillip.wood@dunelm.org.uk</email>
</author>
<published>2026-02-13T14:34:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=046e1117d5d7ccb493ff8857876b05ac16453d43'/>
<id>urn:sha1:046e1117d5d7ccb493ff8857876b05ac16453d43</id>
<content type='text'>
The sample hooks are shell scripts but the filenames end with ".sample"
so they need their own .gitattributes rule. Update our editorconfig
settings to match the attributes as well.

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>Merge branch 'ps/clar-integers'</title>
<updated>2026-01-15T15:12:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2026-01-15T15:12:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=87e278d8377fbc62fb8d2a51fd795529178072d6'/>
<id>urn:sha1:87e278d8377fbc62fb8d2a51fd795529178072d6</id>
<content type='text'>
Import newer version of "clar", unit testing framework.

* ps/clar-integers:
  gitattributes: disable blank-at-eof errors for clar test expectations
  t/unit-tests: demonstrate use of integer comparison assertions
  t/unit-tests: update clar to 39f11fe
</content>
</entry>
<entry>
<title>gitattributes: disable blank-at-eof errors for clar test expectations</title>
<updated>2025-12-06T22:25:16Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2025-12-06T11:47:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=84071a6deac84fdb99d2415900d7713829de393c'/>
<id>urn:sha1:84071a6deac84fdb99d2415900d7713829de393c</id>
<content type='text'>
The clar unit testing framework carries a couple of files that contain
expected output for its self-tests. Some of these files expectedly end
with a blank line at the end of the file, which Git would consider to be
a whitespace error by default.

Teach our gitattributes to ignore those errors.

Suggested-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/whitespace-incomplete-line'</title>
<updated>2025-12-01T02:31:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-12-01T02:31:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3b212a83feea0962d437a3d5883cdd635403fe3c'/>
<id>urn:sha1:3b212a83feea0962d437a3d5883cdd635403fe3c</id>
<content type='text'>
Both "git apply" and "git diff" learn a new whitespace error class,
"incomplete-line".

* jc/whitespace-incomplete-line:
  attr: enable incomplete-line whitespace error for this project
  diff: highlight and error out on incomplete lines
  apply: check and fix incomplete lines
  whitespace: allocate a few more bits and define WS_INCOMPLETE_LINE
  apply: revamp the parsing of incomplete lines
  diff: update the way rewrite diff handles incomplete lines
  diff: call emit_callback ecbdata everywhere
  diff: refactor output of incomplete line
  diff: keep track of the type of the last line seen
  diff: correct suppress_blank_empty hack
  diff: emit_line_ws_markup() if/else style fix
  whitespace: correct bit assignment comments
</content>
</entry>
<entry>
<title>Merge branch 'jc/gitattributes-whitespace-no-indent-fix'</title>
<updated>2025-11-21T17:14:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-11-21T17:14:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7895a60969d59ce9805ce5c88921e13bc8215d8b'/>
<id>urn:sha1:7895a60969d59ce9805ce5c88921e13bc8215d8b</id>
<content type='text'>
Ever since we added whitespace rules for this project, we misspelt
an entry, which has been corrected.

* jc/gitattributes-whitespace-no-indent-fix:
  .gitattributes: remove misspelled no-op whitespace attribute
</content>
</entry>
<entry>
<title>attr: enable incomplete-line whitespace error for this project</title>
<updated>2025-11-14T16:26:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-11-12T22:02:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=51358a1ede7f4b6b50e4e5a86558af5204691fe0'/>
<id>urn:sha1:51358a1ede7f4b6b50e4e5a86558af5204691fe0</id>
<content type='text'>
Now "git diff --check" and "git apply --whitespace=warn/fix" learned
incomplete line is a whitespace error, enable them for this project
to prevent patches to add new incomplete lines to our source to both
code and documentation files.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>.gitattributes: remove misspelled no-op whitespace attribute</title>
<updated>2025-11-11T18:53:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-11-11T18:41:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=358e94dc7059500af09435112ef1d4e5f7692e52'/>
<id>urn:sha1:358e94dc7059500af09435112ef1d4e5f7692e52</id>
<content type='text'>
Ever since 14f9e128 (Define the project whitespace policy,
2008-02-10) added the whitespace rules to .gitattributes, we spelled
the most general rule like so:

    * whitespace=!indent,trail,space

in the top-level .gitattributes file.  The intent of this line was
described in the commit log message:

     - Unless otherwise specified, indent with SP that could be
       replaced with HT are not "bad".  But SP before HT in the
       indent is "bad", and trailing whitespaces are "bad".

It clearly wanted to disable indent-with-non-tab, so !indent is most
likely a misspelt form of '-indent'.  Because indent-with-non-tab
has never been enabled by default, by luck this was not causing any
ill effect.

We could either remove "!indent", or spell it "-indent".  The
immediate effect would be the same.  It would only start to make a
difference when/if we enable indent-with-non-tab by default in
future versions of Git.

Let's take the former option to remove "!indent" from the list.  We
would feel the effect first-hand ourselves before anybody else if we
ever decide to change the built-in default whitespace rules, which
would be hidden from us if we decide to rewrite it to "-indent"
instead.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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>
</feed>
