summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-30Merge pull request #196 from pks-t/pointer-indirectionCarlos Martín Nieto
[WIP/RFC] Pointer indirection
2015-05-22diff: only untrack notify payload when it is setPatrick Steinhardt
2015-05-22tree: use correct C callback signaturePatrick Steinhardt
2015-05-22handles: do not store handles by uintptrPatrick Steinhardt
If we store values by uintptrs the GC may try to inspect their values when it kicks in. As the pointers are most likely invalid, this will result in an invalid pointer dereference, causing the program to panic. We can fix this by storing values by an int index value instead, returning pointers to those indices as handles instead.
2015-05-22handles: panic when we cannot retrieve handle dataPatrick Steinhardt
2015-05-22packbuilder: use HandleList for C function callbacks.Patrick Steinhardt
2015-05-22blob: use HandleList for C function callbacks.Patrick Steinhardt
2015-05-22diff: use HandleList for C function callbacks.Patrick Steinhardt
2015-05-22handles: print pointer handle on panic.Patrick Steinhardt
2015-05-22odb: use HandleList for C function callbacks.Patrick Steinhardt
2015-05-22index: use HandleList for C function callbacks.Patrick Steinhardt
2015-05-22handles: start slot indices with 1Patrick Steinhardt
Using 0 as the first slot indice leads to not being able to differentiate between a handle to the first element or a NULL-handle. As current code may check whether the pointer is NULL, change the first indice to be 1 instead.
2015-05-22submodule: use HandleList for C function callbacksPatrick Steinhardt
2015-05-22tree: use HandleList for C function callbacks.Patrick Steinhardt
2015-05-22handles: correctly initialize all membersPatrick Steinhardt
2015-05-22Introduce an indirection layer for pointersCarlos Martín Nieto
As the Go runtime can move stacks at any point and the C code runs concurrently with the rest of the system, we cannot assume that the payloads we give to the C code will stay valid for any particular duration. We must therefore give the C code handles which we can then look up in our own list when the callbacks get called.
2015-05-19Merge pull request #202 from libgit2/index-basicsCarlos Martín Nieto
Add a few basic index operations
2015-05-19Index: Add Path() accessorCarlos Martín Nieto
2015-05-19Index: Add OpenIndexCarlos Martín Nieto
This lets you persist an index at an arbitrary location.
2015-05-19Index: Add ReadTree()Carlos Martín Nieto
2015-04-27Merge pull request #179 from schani/masterCarlos Martín Nieto
Additions
2015-04-24Merge pull request #197 from pks-t/test-cleanupsCarlos Martín Nieto
tests: always clean up temporary repository dirs
2015-04-24tests: always clean up temporary repository dirsPatrick Steinhardt
Some test repositories are not correctly removed after the tests did run. Fix by introducing a function that is to be used for cleaning up temporary test repositories.
2015-04-03Merge pull request #180 from arcamael/masterCarlos Martín Nieto
Add possibiliy of checkout on specific path
2015-04-03Merge pull request #191 from kron4eg/patch-1Carlos Martín Nieto
Test on travis using Go1.4
2015-04-03Test on travis using Go1.4 tooArtiom Di
2015-03-23Add a FIXME.Mark Probst
2015-03-23Add DiffIndexToWorkdirMark Probst
2015-03-23Add DiffTreeToWorkdirWithIndexMark Probst
2015-03-23Add Commit.AmendMark Probst
2015-03-15Add possibiliy of checkout on specific pathGeoffrey Ragot
2015-03-15Merge branch 'v22'Carlos Martín Nieto
2015-03-15Add a bit more on next vs masterCarlos Martín Nieto
2015-03-15Merge branch 'master' into v22Carlos Martín Nieto
2015-03-15Add a call to ldconfig in the travis scriptCarlos Martín Nieto
This should help it find the library we just installed.
2015-03-15Make travis script install to /usr/localCarlos Martín Nieto
This is the correct place for software not installed by the system's package manager.
2015-03-15Correct README on what master tracksCarlos Martín Nieto
The second mention still said that master tracks master. Add a mention of next which will become the branch to track upstream tip.
2015-03-11Merge pull request #178 from schani/masterCarlos Martín Nieto
Fixes and improvements
2015-03-04Add commit summary getterMark Probst
2015-03-04go fmtMark Probst
2015-03-04Default signatureMark Probst
2015-03-04State cleanupMark Probst
2015-03-04CherrypickMark Probst
2015-03-04Repository stateMark Probst
2015-03-04Fix typos in constantsMark Probst
2015-02-19Add BranchIterator#ForEach.David Calavera
This abstracts the branch iteration from the user.
2015-02-13use v22 travis resultsMatthew Donoughe
2015-02-13return to correct directory for main buildMatthew Donoughe
2015-02-13sudo make install?Matthew Donoughe
2015-02-13install libgit2 on travis ciMatthew Donoughe