<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/refspec.c, branch cmn/pack-objects-report</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>refspec: set err message on invalid refspec</title>
<updated>2015-03-10T20:31:26+00:00</updated>
<author>
<name>Adrien Thebo</name>
<email>git@somethingsinistral.net</email>
</author>
<published>2015-03-04T21:29:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=b523194d219a9dc062bad89bf8ba5dbeca7dab17'/>
<id>b523194d219a9dc062bad89bf8ba5dbeca7dab17</id>
<content type='text'>
If a refspec could not be parsed, the git_refspec__parse function would
return an error value but would not provide additional error information
for the callers. This commit amends that function to set a more useful
error message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a refspec could not be parsed, the git_refspec__parse function would
return an error value but would not provide additional error information
for the callers. This commit amends that function to set a more useful
error message.
</pre>
</div>
</content>
</entry>
<entry>
<title>push: use the common refspec parser</title>
<updated>2014-11-09T15:07:43+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-11-07T14:00:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=aad638f3a1e4d98296c2ec9c4ed08f217a652c5c'/>
<id>aad638f3a1e4d98296c2ec9c4ed08f217a652c5c</id>
<content type='text'>
There is one well-known and well-tested parser which we should use,
instead of implementing parsing a second time.

The common parser is also augmented to copy the LHS into the RHS if the
latter is empty.

The expressions test had to change a bit, as we now catch a bad RHS of a
refspec locally.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is one well-known and well-tested parser which we should use,
instead of implementing parsing a second time.

The common parser is also augmented to copy the LHS into the RHS if the
latter is empty.

The expressions test had to change a bit, as we now catch a bad RHS of a
refspec locally.
</pre>
</div>
</content>
</entry>
<entry>
<title>Check that the refspec matches before modifying the out buffer</title>
<updated>2014-08-21T16:53:43+00:00</updated>
<author>
<name>Jacques Germishuys</name>
<email>jacquesg@striata.com</email>
</author>
<published>2014-08-21T16:53:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=8f6073f63e42c2a3ff3b6fbb20729c7a911be30f'/>
<id>8f6073f63e42c2a3ff3b6fbb20729c7a911be30f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Check if the refspec matches before transforming</title>
<updated>2014-08-17T12:55:06+00:00</updated>
<author>
<name>Jacques Germishuys</name>
<email>jacquesg@striata.com</email>
</author>
<published>2014-08-17T12:55:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=4e53c28096f4b04ab9b573fc594a538f51e10049'/>
<id>4e53c28096f4b04ab9b573fc594a538f51e10049</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refspec: support asterisks in the middle of a pattern</title>
<updated>2014-07-04T16:00:20+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-07-04T15:17:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f5287fa6c39762072e30140329c41e9f304d7c04'/>
<id>f5287fa6c39762072e30140329c41e9f304d7c04</id>
<content type='text'>
We used to assume a refspec would only have an asterisk in the middle of
their respective pattern. This has not been a valid assumption for some
time now with git.

Instead of assuming where the asterisk is going to be, change the logic
to treat each pattern as having two halves with a replacement bit in the
middle, where the asterisk is.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We used to assume a refspec would only have an asterisk in the middle of
their respective pattern. This has not been a valid assumption for some
time now with git.

Instead of assuming where the asterisk is going to be, change the logic
to treat each pattern as having two halves with a replacement bit in the
middle, where the asterisk is.
</pre>
</div>
</content>
</entry>
<entry>
<title>refspec: short-circuit non-pattern refspecs on transform</title>
<updated>2014-07-04T15:41:40+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-07-04T15:16:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=9ed104a8fa9fc28bb29a0ff53c68094696e13aea'/>
<id>9ed104a8fa9fc28bb29a0ff53c68094696e13aea</id>
<content type='text'>
When transforming a non-pattern refspec, we simply need to copy over the
opposite string. Move that logic up to the wrapper so we can assume a
pattern refspec in the transformation function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When transforming a non-pattern refspec, we simply need to copy over the
opposite string. Move that logic up to the wrapper so we can assume a
pattern refspec in the transformation function.
</pre>
</div>
</content>
</entry>
<entry>
<title>refspec: move to git_buf for outputting strings</title>
<updated>2014-01-27T03:44:06+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-01-26T15:59:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=bf522e08114a4dc25815b09db201266a0791381c'/>
<id>bf522e08114a4dc25815b09db201266a0791381c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>remote: store dwimed refspecs separately</title>
<updated>2013-11-01T21:48:09+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2013-10-28T22:30:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=af613ecd445bf0abfda81769e7a2d763413dfd04'/>
<id>af613ecd445bf0abfda81769e7a2d763413dfd04</id>
<content type='text'>
This allows us to add e.g. "HEAD" as a refspec when none are given
without overwriting the user's data.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows us to add e.g. "HEAD" as a refspec when none are given
without overwriting the user's data.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make refspec_transform paranoid about arguments</title>
<updated>2013-07-01T17:21:14+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-07-01T17:21:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=55ededfd398b783fa4fbe54b8aa406c19228fbc6'/>
<id>55ededfd398b783fa4fbe54b8aa406c19228fbc6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refspec: add direction accessor</title>
<updated>2013-04-30T08:55:17+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2013-04-30T08:55:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=8d39f2a79067c9551286bb552457db71b88b64d3'/>
<id>8d39f2a79067c9551286bb552457db71b88b64d3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
