<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/convert.c, branch v2.25.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.25.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.25.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-02-14T20:42:34Z</updated>
<entry>
<title>Merge branch 'js/convert-typofix' into maint</title>
<updated>2020-02-14T20:42:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-02-14T20:42:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6141e0cc00d556a0dd5a2b84c4d92508bfe4ed3b'/>
<id>urn:sha1:6141e0cc00d556a0dd5a2b84c4d92508bfe4ed3b</id>
<content type='text'>
Typofix.

* js/convert-typofix:
  convert: fix typo
</content>
</entry>
<entry>
<title>convert: fix typo</title>
<updated>2020-02-11T20:03:09Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2020-02-11T18:56:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2b0f19fa7a51fee27d03d08c5f4abceecd310c3f'/>
<id>urn:sha1:2b0f19fa7a51fee27d03d08c5f4abceecd310c3f</id>
<content type='text'>
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 'rs/skip-iprefix'</title>
<updated>2019-12-01T17:04:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-01T17:04:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d2489ce92c9ce81b3701a5e25547b969cb6e5209'/>
<id>urn:sha1:d2489ce92c9ce81b3701a5e25547b969cb6e5209</id>
<content type='text'>
Code simplification.

* rs/skip-iprefix:
  convert: use skip_iprefix() in validate_encoding()
  utf8: use skip_iprefix() in same_utf_encoding()
</content>
</entry>
<entry>
<title>convert: use skip_iprefix() in validate_encoding()</title>
<updated>2019-11-10T07:04:48Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2019-11-08T20:27:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ed283588330968dfefba37032980dfe2a8df63e4'/>
<id>urn:sha1:ed283588330968dfefba37032980dfe2a8df63e4</id>
<content type='text'>
Use skip_iprefix() to parse "UTF" case-insensitively instead of checking
with istarts_with(), building an upper-case version and then using
skip_prefix() on it.  This gets rid of duplicate code and of a small
allocation.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix spelling errors in code comments</title>
<updated>2019-11-10T07:00:54Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2019-11-05T17:07:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=15beaaa3d1f6b555900446deb5e376b4f806d734'/>
<id>urn:sha1:15beaaa3d1f6b555900446deb5e376b4f806d734</id>
<content type='text'>
Reported-by: Jens Schleusener &lt;Jens.Schleusener@fossies.org&gt;
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/convert-fix-utf-without-dash'</title>
<updated>2019-10-09T05:01:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-10-09T05:01:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d17f54947d9074e92bfbeabc05d5c39147456fe3'/>
<id>urn:sha1:d17f54947d9074e92bfbeabc05d5c39147456fe3</id>
<content type='text'>
The code to skip "UTF" and "UTF-" prefix, when computing an advice
message, did not work correctly when the prefix was "UTF", which
has been fixed.

* rs/convert-fix-utf-without-dash:
  convert: fix handling of dashless UTF prefix in validate_encoding()
</content>
</entry>
<entry>
<title>convert: fix handling of dashless UTF prefix in validate_encoding()</title>
<updated>2019-10-06T00:43:01Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2019-10-04T19:25:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b181676ce9e8c89a39737f098d9b9c4f774596cf'/>
<id>urn:sha1:b181676ce9e8c89a39737f098d9b9c4f774596cf</id>
<content type='text'>
Strip "UTF" and an optional dash from the start of 'upper' without
passing a NULL pointer to skip_prefix() in the second call, as it cannot
handle that.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>am: reload .gitattributes after patching it</title>
<updated>2019-09-03T22:16:18Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2019-09-02T22:39:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2c65d90f7579a0e2a6460eebce44795587e87043'/>
<id>urn:sha1:2c65d90f7579a0e2a6460eebce44795587e87043</id>
<content type='text'>
When applying multiple patches with git am, or when rebasing using the
am backend, it's possible that one of our patches has updated a
gitattributes file. Currently, we cache this information, so if a
file in a subsequent patch has attributes applied, the file will be
written out with the attributes in place as of the time we started the
rebase or am operation, not with the attributes applied by the previous
patch. This problem does not occur when using the -m or -i flags to
rebase.

To ensure we write the correct data into the working tree, expire the
cache after each patch that touches a path ending in ".gitattributes".
Since we load these attributes in multiple separate files, we must
expire them accordingly.

Verify that both the am and rebase code paths work correctly, including
the conflict marker size with am -3.

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>Merge branch 'jh/resize-convert-scratch-buffer'</title>
<updated>2019-04-09T17:14:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-04-09T17:14:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1828e52efcffe75707b88345f025c3ee4114864a'/>
<id>urn:sha1:1828e52efcffe75707b88345f025c3ee4114864a</id>
<content type='text'>
When the "clean" filter can reduce the size of a huge file in the
working tree down to a small "token" (a la Git LFS), there is no
point in allocating a huge scratch area upfront, but the buffer is
sized based on the original file size.  The convert mechanism now
allocates very minimum and reallocates as it receives the output
from the clean filter process.

* jh/resize-convert-scratch-buffer:
  convert: avoid malloc of original file size
</content>
</entry>
<entry>
<title>convert: avoid malloc of original file size</title>
<updated>2019-03-08T01:13:00Z</updated>
<author>
<name>Joey Hess</name>
<email>id@joeyh.name</email>
</author>
<published>2019-03-07T19:56:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=02156ab031e430bc45ce6984dfc712de9962dec8'/>
<id>urn:sha1:02156ab031e430bc45ce6984dfc712de9962dec8</id>
<content type='text'>
We write the output of a "clean" filter into a strbuf. Rather than
growing the strbuf dynamically as we read its output, we make the
initial allocation as large as the original input file. This is a good
guess when the filter is just tweaking a few bytes, but it's disastrous
when the point of the filter is to condense a very large file into a
short identifier (e.g., the way git-lfs and git-annex do). We may ask to
allocate many gigabytes, causing the allocation to fail and Git to
die().

Instead, let's just let strbuf do its usual growth.

When the clean filter does output something around the same size as the
worktree file, the buffer will need to be reallocated until it fits,
starting at 8192 and doubling in size. Benchmarking indicates that
reallocation is not a significant overhead for outputs up to a
few MB in size.

Signed-off-by: Joey Hess &lt;id@joeyh.name&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
