<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/message, branch ethomson/test_https</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/'/>
<entry>
<title>str: introduce `git_str` for internal, `git_buf` is external</title>
<updated>2021-10-17T13:49:01+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2021-09-07T21:53:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f0e693b18afbe1de37d7da5b5a8967b6c87d8e53'/>
<id>f0e693b18afbe1de37d7da5b5a8967b6c87d8e53</id>
<content type='text'>
libgit2 has two distinct requirements that were previously solved by
`git_buf`.  We require:

1. A general purpose string class that provides a number of utility APIs
   for manipulating data (eg, concatenating, truncating, etc).
2. A structure that we can use to return strings to callers that they
   can take ownership of.

By using a single class (`git_buf`) for both of these purposes, we have
confused the API to the point that refactorings are difficult and
reasoning about correctness is also difficult.

Move the utility class `git_buf` to be called `git_str`: this represents
its general purpose, as an internal string buffer class.  The name also
is an homage to Junio Hamano ("gitstr").

The public API remains `git_buf`, and has a much smaller footprint.  It
is generally only used as an "out" param with strict requirements that
follow the documentation.  (Exceptions exist for some legacy APIs to
avoid breaking callers unnecessarily.)

Utility functions exist to convert a user-specified `git_buf` to a
`git_str` so that we can call internal functions, then converting it
back again.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libgit2 has two distinct requirements that were previously solved by
`git_buf`.  We require:

1. A general purpose string class that provides a number of utility APIs
   for manipulating data (eg, concatenating, truncating, etc).
2. A structure that we can use to return strings to callers that they
   can take ownership of.

By using a single class (`git_buf`) for both of these purposes, we have
confused the API to the point that refactorings are difficult and
reasoning about correctness is also difficult.

Move the utility class `git_buf` to be called `git_str`: this represents
its general purpose, as an internal string buffer class.  The name also
is an homage to Junio Hamano ("gitstr").

The public API remains `git_buf`, and has a much smaller footprint.  It
is generally only used as an "out" param with strict requirements that
follow the documentation.  (Exceptions exist for some legacy APIs to
avoid breaking callers unnecessarily.)

Utility functions exist to convert a user-specified `git_buf` to a
`git_str` so that we can call internal functions, then converting it
back again.
</pre>
</div>
</content>
</entry>
<entry>
<title>just use git_message_trailer in tests</title>
<updated>2018-01-17T06:20:50+00:00</updated>
<author>
<name>Brian Lopez</name>
<email>seniorlopez@gmail.com</email>
</author>
<published>2018-01-17T06:20:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=1e758fd3154eef0bf1237fb20b2180ad08cfe28d'/>
<id>1e758fd3154eef0bf1237fb20b2180ad08cfe28d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>try and fix windows build</title>
<updated>2018-01-17T04:54:05+00:00</updated>
<author>
<name>Brian Lopez</name>
<email>seniorlopez@gmail.com</email>
</author>
<published>2018-01-17T04:54:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=6062032e452afea451901333089da834edbe2078'/>
<id>6062032e452afea451901333089da834edbe2078</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Change trailer API to return a simple array</title>
<updated>2018-01-17T03:33:04+00:00</updated>
<author>
<name>Brian Lopez</name>
<email>seniorlopez@gmail.com</email>
</author>
<published>2018-01-16T21:40:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=d43974fb5cbfda6ec28fc92b83d03db0af73748b'/>
<id>d43974fb5cbfda6ec28fc92b83d03db0af73748b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>switch back to braced array initializers</title>
<updated>2018-01-05T19:47:02+00:00</updated>
<author>
<name>Brian Lopez</name>
<email>seniorlopez@gmail.com</email>
</author>
<published>2018-01-04T16:24:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f4f0e7eb0f8280ed6100c37c3af0aa66c31a8f9e'/>
<id>f4f0e7eb0f8280ed6100c37c3af0aa66c31a8f9e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't use newer C syntax for declaration in tests</title>
<updated>2018-01-04T00:16:22+00:00</updated>
<author>
<name>Brian Lopez</name>
<email>seniorlopez@gmail.com</email>
</author>
<published>2018-01-04T00:16:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=6bc7301e8ab6194179423b95a481942e2fa11329'/>
<id>6bc7301e8ab6194179423b95a481942e2fa11329</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: add message trailer parsing test cases</title>
<updated>2017-12-19T04:01:50+00:00</updated>
<author>
<name>Charlie Somerville</name>
<email>charlie@charlie.bz</email>
</author>
<published>2017-12-19T02:49:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=e24f3b59105eafe54c2efb10ab970680676b9ef1'/>
<id>e24f3b59105eafe54c2efb10ab970680676b9ef1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
