summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-08Merge remote-tracking branch 'origin/master' into nextCarlos Martín Nieto
2015-05-30Fix test error messagestaylorchu
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-21Merge pull request #195 from shurcooL/next-ignore-scriptCarlos Martín Nieto
Avoid installing script binary to user's $GOPATH/bin.
2015-04-18Update to libgit2 4c02d3937Carlos Martín Nieto
2015-04-16Avoid installing script binary to user's $GOPATH/bin.Dmitri Shuralyov
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-22Merge pull request #185 from griffindy/dg-add-resetCarlos Martín Nieto
Add support for libgit2's git_reset.
2015-03-21Add support for libgit2's git_reset.Dylan Griffin
Adds a new method to *Repository called ResetToCommit as well as constants for the three reset modes that libgit2 currently supports. This does not need to be limited to Commit, we actually just need something with a gitObject, which blobs and other Objects have, they will just require different methods. I only need to be able to reset to commits, so that's all I'm implementing right now. Also adds a test which updates the test repository README twice and then resets to the first commit.
2015-03-15Add possibiliy of checkout on specific pathGeoffrey Ragot
2015-03-15Update to libgit2 d675982a153Carlos Martín Nieto
There's been some changes to the checkout strategy, especially the SAFE_CREATE mode, which is now the RECREATE_MISSING flag, though that shouldn't be necessary to use in the general case. The largest changes come from the removal of the signture from ref-modifying functions/methods and the removal of the reflog string in all but those directly related to moving references.
2015-03-15Merge branch 'v22'Carlos Martín Nieto
2015-03-15Add a bit more on next vs masterCarlos Martín Nieto
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-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