<feed xmlns='http://www.w3.org/2005/Atom'>
<title>jcarr/libgit2/status.go, branch v0.1.5</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>http://cgit.wit.com/jcarr/libgit2/atom?h=v0.1.5</id>
<link rel='self' href='http://cgit.wit.com/jcarr/libgit2/atom?h=v0.1.5'/>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/'/>
<updated>2021-09-05T20:59:36Z</updated>
<entry>
<title>Make all non-user-creatable structures non-comparable (#802)</title>
<updated>2021-09-05T20:59:36Z</updated>
<author>
<name>lhchavez</name>
<email>lhchavez@lhchavez.com</email>
</author>
<published>2021-09-05T20:59:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=dbe032c347b1a1308a4b880e7c5a06d8dfb4d507'/>
<id>urn:sha1:dbe032c347b1a1308a4b880e7c5a06d8dfb4d507</id>
<content type='text'>
This change makes all non-user-creatable structures non-comparable. This
makes it easier to add changes later that don't introduce breaking
changes from the go compatibility guarantees perspective.

This, of course, implies that this change _is_ a breaking change, but since
these structures are not intended to be created by users (or de-referenced),
it should be okay.</content>
</entry>
<entry>
<title>refactor: Use undeprecated options init (#656)</title>
<updated>2020-10-22T13:18:11Z</updated>
<author>
<name>Suhaib Mujahid</name>
<email>suhaibmujahid@gmail.com</email>
</author>
<published>2020-10-22T13:18:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=5b6ce70b8997254ce48f8c24ba4198080e646fdd'/>
<id>urn:sha1:5b6ce70b8997254ce48f8c24ba4198080e646fdd</id>
<content type='text'>
This PR move form linking against the deprecated `init_options` functions to the renamed `options_init` functions.

For more context see libgit2/libgit2@0b5ba0d744e69da5dc8c08d167c83dd87ed83af2 and libgit2/libgit2@c6184f0c4b209e462bf3f42ab20df2d13d8ee918.</content>
</entry>
<entry>
<title>Fix null pointer dereference in status.ByIndex (#628)</title>
<updated>2020-08-14T18:19:21Z</updated>
<author>
<name>michael boulton</name>
<email>61595820+mbfr@users.noreply.github.com</email>
</author>
<published>2020-08-14T18:19:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=fc6eaf36388841b16ff004e1d48e887d3f9613dc'/>
<id>urn:sha1:fc6eaf36388841b16ff004e1d48e887d3f9613dc</id>
<content type='text'>
`git_status_byindex` can return a null pointer if there is no statuses.</content>
</entry>
<entry>
<title>Third round of keep-alive aditions</title>
<updated>2017-07-08T14:07:51Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>carlosmn@github.com</email>
</author>
<published>2017-07-08T14:07:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=55a1096141519a1f380d0702671cfe9bf90ec435'/>
<id>urn:sha1:55a1096141519a1f380d0702671cfe9bf90ec435</id>
<content type='text'>
</content>
</entry>
<entry>
<title>StatusConflicted maps GIT_STATUS_CONFLICTED</title>
<updated>2016-05-29T13:01:17Z</updated>
<author>
<name>Mirko Nosenzo</name>
<email>netnose@gmail.com</email>
</author>
<published>2016-05-29T12:37:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=82f86f2f13213cfadfafc07a033c269095386dbc'/>
<id>urn:sha1:82f86f2f13213cfadfafc07a033c269095386dbc</id>
<content type='text'>
Added support for file in conflicted status
</content>
</entry>
<entry>
<title>Fix crash when using Pathspec in StatusOptions</title>
<updated>2015-09-18T08:48:26Z</updated>
<author>
<name>Calin Seciu</name>
<email>calinseciu@gmail.com</email>
</author>
<published>2015-09-17T14:07:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=34fb7e03ecfd3fbe7000ecfac4e30ea719d9879e'/>
<id>urn:sha1:34fb7e03ecfd3fbe7000ecfac4e30ea719d9879e</id>
<content type='text'>
Using `StatusOptions.Pathspec` results in a fatal error panic with
the message 'unexpected signal during runtime execution'.

This is because the `&amp;cpathspec` C.git_strarray gets freed in
`*StatusOptions.toC()` before being passed to
`C.git_status_init_options()` in `*Repository.StatusList()`
(see https://github.com/libgit2/git2go/blob/b3e7705c48f038ef335204a2a9e1ee829784c30e/status.go#L138)

The relevant panic trace is:

```
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0xb01dfacedebac1e pc=0x4062609]

runtime stack:
runtime.throw(0x469a080, 0x2a)
    /usr/local/Cellar/go/1.5.1/libexec/src/runtime/panic.go:527 +0x90
runtime.sigpanic()
    /usr/local/Cellar/go/1.5.1/libexec/src/runtime/sigpanic_unix.go:12
+0x5a

goroutine 71 [syscall, locked to thread]:
runtime.cgocall(0x400a720, 0xc8204e9998, 0x0)
    /usr/local/Cellar/go/1.5.1/libexec/src/runtime/cgocall.go:120 +0x11b
fp=0xc8204e9968 sp=0xc8204e9938
github.com/libgit2/git2go._Cfunc_git_status_list_new(0xc8204c39c8,
0x5e17780, 0xc820478c40, 0xc800000000)
    ??:0 +0x39 fp=0xc8204e9998 sp=0xc8204e9968
github.com/libgit2/git2go.(*Repository).StatusList(0xc820013290,
0xc8204e9b58, 0x0, 0x0, 0x0)
    /Users/calin/go/src/github.com/libgit2/git2go/status.go:168 +0x11d
fp=0xc8204e99e8 sp=0xc8204e9998
```
</content>
</entry>
<entry>
<title>go fmt</title>
<updated>2015-03-04T23:52:59Z</updated>
<author>
<name>Mark Probst</name>
<email>mark.probst@gmail.com</email>
</author>
<published>2015-03-04T19:40:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=45d88ca5f4e69c9a07b867ec73da27f29bd77388'/>
<id>urn:sha1:45d88ca5f4e69c9a07b867ec73da27f29bd77388</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove useless includes</title>
<updated>2014-12-11T01:59:07Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-12-11T01:59:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=a9d993f3d1400970bfba572747edbee1b57fd221'/>
<id>urn:sha1:a9d993f3d1400970bfba572747edbee1b57fd221</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the constants have types</title>
<updated>2014-10-28T10:29:31Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-10-27T14:12:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=668aa5dae1690d1a061da728f83b2450485d47f4'/>
<id>urn:sha1:668aa5dae1690d1a061da728f83b2450485d47f4</id>
<content type='text'>
While Go will assign the correct type to a const block when it
auto-creates the values, assigning makes the const be typeless and will
only gain it in each particular use.

Make each constant in the blocks have an assigned type.
</content>
</entry>
<entry>
<title>remove unused status version field</title>
<updated>2014-09-04T14:17:31Z</updated>
<author>
<name>Ben Navetta</name>
<email>ben.navetta@gmail.com</email>
</author>
<published>2014-09-04T14:17:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/libgit2/commit/?id=d4734a41d5647a929c6dbbafbbec369002600de8'/>
<id>urn:sha1:d4734a41d5647a929c6dbbafbbec369002600de8</id>
<content type='text'>
</content>
</entry>
</feed>
