<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/gitattributes.txt, branch v2.22.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.22.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.22.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-04-16T10:28:08Z</updated>
<entry>
<title>Merge branch 'ab/doc-misc-typofixes'</title>
<updated>2019-04-16T10:28:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-04-16T10:28:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=04116ecb7b1cf102b7f5908bc7f4117192e82530'/>
<id>urn:sha1:04116ecb7b1cf102b7f5908bc7f4117192e82530</id>
<content type='text'>
Typofixes.

* ab/doc-misc-typofixes:
  doc: fix typos in man pages
</content>
</entry>
<entry>
<title>Merge branch 'ma/asciidoctor-fixes-more'</title>
<updated>2019-04-16T10:28:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-04-16T10:28:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d281f70cc82327838188a729d9903ce2c470d6f'/>
<id>urn:sha1:6d281f70cc82327838188a729d9903ce2c470d6f</id>
<content type='text'>
Documentation mark-up fixes.

* ma/asciidoctor-fixes-more:
  Documentation: turn middle-of-line tabs into spaces
  git-svn.txt: drop escaping '\' that ends up being rendered
  git.txt: remove empty line before list continuation
  config/fsck.txt: avoid starting line with dash
  config/diff.txt: drop spurious backtick
</content>
</entry>
<entry>
<title>doc: fix typos in man pages</title>
<updated>2019-03-18T05:45:21Z</updated>
<author>
<name>Alexander Blesius</name>
<email>alexander+git@blesius.eu</email>
</author>
<published>2019-03-16T10:34:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ed31851fa640a0c23a3d6ead07af5155417aeb4e'/>
<id>urn:sha1:ed31851fa640a0c23a3d6ead07af5155417aeb4e</id>
<content type='text'>
Signed-off-by: Alexander Blesius &lt;alexander+git@blesius.eu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'yb/utf-16le-bom-spellfix'</title>
<updated>2019-03-11T07:16:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-03-11T07:16:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2cab2886944e4c0c2b8e2d76639bb145743ecc76'/>
<id>urn:sha1:2cab2886944e4c0c2b8e2d76639bb145743ecc76</id>
<content type='text'>
Doc update.

* yb/utf-16le-bom-spellfix:
  gitattributes.txt: fix typo
</content>
</entry>
<entry>
<title>Documentation: turn middle-of-line tabs into spaces</title>
<updated>2019-03-07T00:25:32Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2019-03-06T06:30:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8d75a1d183e2cbb4c56c14e59aeda64a87d86a34'/>
<id>urn:sha1:8d75a1d183e2cbb4c56c14e59aeda64a87d86a34</id>
<content type='text'>
These tabs happen to appear in columns where they don't stand out too
much, so the diff here is non-obvious. Some of these are rendered
differently by AsciiDoc and Asciidoctor (although the difference might
be invisible!), which is how I found a few of them. The remainder were
found using `git grep "[a-zA-Z.,)]$TAB[a-zA-Z]"`.

Signed-off-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitattributes.txt: fix typo</title>
<updated>2019-03-07T00:24:06Z</updated>
<author>
<name>Yash Bhatambare</name>
<email>ybhatambare@gmail.com</email>
</author>
<published>2019-03-06T05:23:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6e15194a85af68db9f9ce076eb32c47e7063b3c'/>
<id>urn:sha1:e6e15194a85af68db9f9ce076eb32c47e7063b3c</id>
<content type='text'>
`UTF-16-LE-BOM` to `UTF-16LE-BOM`.

this closes https://github.com/git-for-windows/git/issues/2095

Signed-off-by: Yash Bhatambare &lt;ybhatambare@gmail.com&gt;
Signed-off-by: Torsten Bögershausen &lt;tboegi@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/autocrlf-overrides-eol-doc'</title>
<updated>2019-02-07T06:05:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-02-07T06:05:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=13e263095b55c88b7af86c3c88f8b0f937eb4d5c'/>
<id>urn:sha1:13e263095b55c88b7af86c3c88f8b0f937eb4d5c</id>
<content type='text'>
Documentation around core.crlf has been updated.

* jk/autocrlf-overrides-eol-doc:
  docs/config: clarify "text property" in core.eol
  doc/gitattributes: clarify "autocrlf overrides eol"
</content>
</entry>
<entry>
<title>Support working-tree-encoding "UTF-16LE-BOM"</title>
<updated>2019-01-31T18:27:52Z</updated>
<author>
<name>Torsten Bögershausen</name>
<email>tboegi@web.de</email>
</author>
<published>2019-01-30T15:01:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aab2a1ae48ff65781a5379a01a4abb4f75e5641d'/>
<id>urn:sha1:aab2a1ae48ff65781a5379a01a4abb4f75e5641d</id>
<content type='text'>
Users who want UTF-16 files in the working tree set the .gitattributes
like this:
test.txt working-tree-encoding=UTF-16

The unicode standard itself defines 3 allowed ways how to encode UTF-16.
The following 3 versions convert all back to 'g' 'i' 't' in UTF-8:

a) UTF-16, without BOM, big endian:
$ printf "\000g\000i\000t" | iconv -f UTF-16 -t UTF-8 | od -c
0000000    g   i   t

b) UTF-16, with BOM, little endian:
$ printf "\377\376g\000i\000t\000" | iconv -f UTF-16 -t UTF-8 | od -c
0000000    g   i   t

c) UTF-16, with BOM, big endian:
$ printf "\376\377\000g\000i\000t" | iconv -f UTF-16 -t UTF-8 | od -c
0000000    g   i   t

Git uses libiconv to convert from UTF-8 in the index into ITF-16 in the
working tree.
After a checkout, the resulting file has a BOM and is encoded in "UTF-16",
in the version (c) above.
This is what iconv generates, more details follow below.

iconv (and libiconv) can generate UTF-16, UTF-16LE or UTF-16BE:

d) UTF-16
$ printf 'git' | iconv -f UTF-8 -t UTF-16 | od -c
0000000  376 377  \0   g  \0   i  \0   t

e) UTF-16LE
$ printf 'git' | iconv -f UTF-8 -t UTF-16LE | od -c
0000000    g  \0   i  \0   t  \0

f)  UTF-16BE
$ printf 'git' | iconv -f UTF-8 -t UTF-16BE | od -c
0000000   \0   g  \0   i  \0   t

There is no way to generate version (b) from above in a Git working tree,
but that is what some applications need.
(All fully unicode aware applications should be able to read all 3 variants,
but in practise we are not there yet).

When producing UTF-16 as an output, iconv generates the big endian version
with a BOM. (big endian is probably chosen for historical reasons).

iconv can produce UTF-16 files with little endianess by using "UTF-16LE"
as encoding, and that file does not have a BOM.

Not all users (especially under Windows) are happy with this.
Some tools are not fully unicode aware and can only handle version (b).

Today there is no way to produce version (b) with iconv (or libiconv).
Looking into the history of iconv, it seems as if version (c) will
be used in all future iconv versions (for compatibility reasons).

Solve this dilemma and introduce a Git-specific "UTF-16LE-BOM".
libiconv can not handle the encoding, so Git pick it up, handles the BOM
and uses libiconv to convert the rest of the stream.
(UTF-16BE-BOM is added for consistency)

Rported-by: Adrián Gimeno Balaguer &lt;adrigibal@gmail.com&gt;
Signed-off-by: Torsten Bögershausen &lt;tboegi@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc/gitattributes: clarify "autocrlf overrides eol"</title>
<updated>2019-01-29T17:21:33Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2019-01-29T12:41:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2b6808531a5b038a0f780af4f8b92c4b27cdf010'/>
<id>urn:sha1:2b6808531a5b038a0f780af4f8b92c4b27cdf010</id>
<content type='text'>
We only override core.eol with core.autocrlf when the latter is set to
something besides "false".  Let's make this more clear, and point the
reader to the git-config definitions, which discuss this in more detail.

Noticed-by: Sergey Lukashev &lt;lukashev.s@ya.ru&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: fix inappropriate monospace formatting</title>
<updated>2018-10-23T03:23:09Z</updated>
<author>
<name>Andreas Heiduk</name>
<email>asheiduk@gmail.com</email>
</author>
<published>2018-10-22T20:45:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ad471949f46c774fcdada93f376360057c6ec777'/>
<id>urn:sha1:ad471949f46c774fcdada93f376360057c6ec777</id>
<content type='text'>
Signed-off-by: Andreas Heiduk &lt;asheiduk@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
