summaryrefslogtreecommitdiff
path: root/status.go
AgeCommit message (Collapse)Author
2021-09-05Make all non-user-creatable structures non-comparable (#802)lhchavez
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.
2020-10-22refactor: Use undeprecated options init (#656)Suhaib Mujahid
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.
2020-08-14Fix null pointer dereference in status.ByIndex (#628)michael boulton
`git_status_byindex` can return a null pointer if there is no statuses.
2017-07-08Third round of keep-alive aditionsCarlos Martín Nieto
2016-05-29StatusConflicted maps GIT_STATUS_CONFLICTEDMirko Nosenzo
Added support for file in conflicted status
2015-09-18Fix crash when using Pathspec in StatusOptionsCalin Seciu
Using `StatusOptions.Pathspec` results in a fatal error panic with the message 'unexpected signal during runtime execution'. This is because the `&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 ```
2015-03-04go fmtMark Probst
2014-12-11Remove useless includesCarlos Martín Nieto
2014-10-28Make the constants have typesCarlos Martín Nieto
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.
2014-09-04remove unused status version fieldBen Navetta
2014-09-04give status option flags their own typeBen Navetta
2014-08-25fix status list to handle null head_to_index in entriesBen Navetta
2014-08-25add thread locking to status apiBen Navetta
2014-08-25remove status_foreach bindingBen Navetta
2014-08-25don't return anything from StatusList.FreeBen Navetta
2014-08-19add git_status_foreach bindingBen Navetta
2014-08-18add StatusFile functionBen Navetta
2014-08-18add status option supportBen Navetta
2014-08-18add StatusList.EntryCount()Ben Navetta
2014-08-18add ByIndex, reorder to match other filesBen Navetta
2014-08-18status data typesBen Navetta