<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/diff/parse.c, branch ethomson/diff_enum</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>patch_parse: handle absence of "index" header for new/deleted cases</title>
<updated>2020-08-29T14:54:15+00:00</updated>
<author>
<name>Denis Laxalde</name>
<email>denis@laxalde.org</email>
</author>
<published>2020-08-29T14:46:47+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=74293ea04a21f35151f0be095baf7bd3b3fd339c'/>
<id>74293ea04a21f35151f0be095baf7bd3b3fd339c</id>
<content type='text'>
This follows up on 11de594f85479e4804b07dc4f7b33cfe9212bea0 which added
support for parsing patches without extended headers (the "index
&lt;hash&gt;..&lt;hash&gt; &lt;mode&gt;" line); issue #5267.

We now allow transition from "file mode" state to "path" state directly
if there is no "index", which will happen for patches adding or deleting
files as demonstrated in added test case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This follows up on 11de594f85479e4804b07dc4f7b33cfe9212bea0 which added
support for parsing patches without extended headers (the "index
&lt;hash&gt;..&lt;hash&gt; &lt;mode&gt;" line); issue #5267.

We now allow transition from "file mode" state to "path" state directly
if there is no "index", which will happen for patches adding or deleting
files as demonstrated in added test case.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #5541 from libgit2/ethomson/clar_tap</title>
<updated>2020-06-05T13:11:34+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2020-06-05T13:11:34+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=c708e5e51d8f6aae517a861c380861c3caf18eb6'/>
<id>c708e5e51d8f6aae517a861c380861c3caf18eb6</id>
<content type='text'>
clar: add tap output option</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
clar: add tap output option</pre>
</div>
</content>
</entry>
<entry>
<title>clar: include the function name</title>
<updated>2020-06-05T07:49:07+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2020-06-05T07:42:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=cad7a1bad40c302fef02306708f6ce6279680cb4'/>
<id>cad7a1bad40c302fef02306708f6ce6279680cb4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>diff::parse: don't include `diff.h`</title>
<updated>2020-06-05T06:17:15+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2020-05-01T11:39:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=06d69dfcfdfa4eb08cb402ed3a55091eb7d2b97b'/>
<id>06d69dfcfdfa4eb08cb402ed3a55091eb7d2b97b</id>
<content type='text'>
We don't call any internal functions in the test; we don't need to
include `../src/diff.h`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We don't call any internal functions in the test; we don't need to
include `../src/diff.h`.
</pre>
</div>
</content>
</entry>
<entry>
<title>patch_parse: handle patches without extended headers</title>
<updated>2019-10-16T20:53:29+00:00</updated>
<author>
<name>Denis Laxalde</name>
<email>denis@laxalde.org</email>
</author>
<published>2019-10-16T20:11:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=11de594f85479e4804b07dc4f7b33cfe9212bea0'/>
<id>11de594f85479e4804b07dc4f7b33cfe9212bea0</id>
<content type='text'>
Extended header lines (especially the "index &lt;hash&gt;..&lt;hash&gt; &lt;mode&gt;") are
not required by "git apply" so it import patches. So we allow the
from-file/to-file lines (--- a/file\n+++ b/file) to directly follow the
git diff header.

This fixes #5267.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Extended header lines (especially the "index &lt;hash&gt;..&lt;hash&gt; &lt;mode&gt;") are
not required by "git apply" so it import patches. So we allow the
from-file/to-file lines (--- a/file\n+++ b/file) to directly follow the
git diff header.

This fixes #5267.
</pre>
</div>
</content>
</entry>
<entry>
<title>patch_parse: handle patches with new empty files</title>
<updated>2019-09-28T13:52:25+00:00</updated>
<author>
<name>Denis Laxalde</name>
<email>denis@laxalde.org</email>
</author>
<published>2019-09-28T13:52:25+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=b61810bf1ff1007bc0a5d8e47362a735f2ff1f0b'/>
<id>b61810bf1ff1007bc0a5d8e47362a735f2ff1f0b</id>
<content type='text'>
Patches containing additions of empty files will not contain diff data
but will end with the index header line followed by the terminating
sequence "-- ". We follow the same logic as in cc4c44a and allow "-- "
to immediately follow the index header.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Patches containing additions of empty files will not contain diff data
but will end with the index header line followed by the terminating
sequence "-- ". We follow the same logic as in cc4c44a and allow "-- "
to immediately follow the index header.
</pre>
</div>
</content>
</entry>
<entry>
<title>patch_parse.c: Handle CRLF in parse_header_start</title>
<updated>2019-04-06T00:44:10+00:00</updated>
<author>
<name>Drew DeVault</name>
<email>sir@cmpwn.com</email>
</author>
<published>2019-03-23T03:56:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=30c06b601eaf9b87975a3731ad1051d74b1ae73d'/>
<id>30c06b601eaf9b87975a3731ad1051d74b1ae73d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: diff: test parsing diffs with a new file with spaces in its path</title>
<updated>2019-03-29T11:51:49+00:00</updated>
<author>
<name>Erik Aigner</name>
<email>aigner.erik@gmail.com</email>
</author>
<published>2019-03-29T11:30:37+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=9d65360b4eaa402c8f137684577d0131a861ce8b'/>
<id>9d65360b4eaa402c8f137684577d0131a861ce8b</id>
<content type='text'>
Add a test that verifies that we are able to parse patches which add a
new file that has spaces in its path.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a test that verifies that we are able to parse patches which add a
new file that has spaces in its path.
</pre>
</div>
</content>
</entry>
<entry>
<title>patch_parse: populate line numbers while parsing diffs</title>
<updated>2018-06-18T22:12:58+00:00</updated>
<author>
<name>Etienne Samson</name>
<email>samson.etienne@gmail.com</email>
</author>
<published>2018-06-18T20:37:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=f9e28026753f7b6c871a160ad584b2dc2639d30f'/>
<id>f9e28026753f7b6c871a160ad584b2dc2639d30f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Convert usage of `git_buf_free` to new `git_buf_dispose`</title>
<updated>2018-06-10T17:34:37+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-02-08T11:14:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libgit2.git/commit/?id=ecf4f33a4e327a91496f72816f9f02d923e5af05'/>
<id>ecf4f33a4e327a91496f72816f9f02d923e5af05</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
