summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-04Repository.CreateCommit: Only allocate CStr on non-empty refnameAlexander Surma
2014-09-01Repository.CreateCommit: Allow empty refname for non-update commitAlexander Surma
2014-08-26Exit when pkg-config isn't foundCarlos Martín Nieto
We run pkg-config in a subshell, so our 'set -e' does not take effect there. Explicitly error out if there was an error running pkg-config.
2014-08-26Merge calvera/rev-parseCarlos Martín Nieto
2014-08-26Remove unnecessary heap allocationCarlos Martín Nieto
2014-08-25Update vendored libgit2 version to v0.21.1Carlos Martín Nieto
2014-08-25Handle empty slices in CreateBlobFromBuffer()Carlos Martín Nieto
Go won't let us access the zeroth alement of an empty slice, so we need to figure out if the length is zero and take special action. This fixes #106.
2014-08-25Merge pull request #105 from mattes/patch-1Carlos Martín Nieto
Make sure install/lib dir exists. Fixes #104
2014-08-22Extract data into a go struct.David Calavera
2014-08-06Make sure install/lib dir exists. Fixes #104Matthias Kadenbach
2014-07-24Add Repository#RevParseExt.David Calavera
2014-07-24Add Repository#RevParseSingle.David Calavera
2014-07-24Make a new pointer to pass to git_revparse.David Calavera
2014-07-24Add simple test for `rev-parse HEAD`.David Calavera
2014-07-24Move RevSpec#From and RevSpec#To to struct methods.David Calavera
2014-07-24Add Repository#RevParse.David Calavera
2014-07-12Merge pull request #101 from bargez/patch-1Carlos Martín Nieto
Fix a typo in git2go path
2014-07-12Fix a typo in git2go pathBartosz Gęza
2014-07-03travis: build with Go 1.3Carlos Martín Nieto
2014-07-03Update READMECarlos Martín Nieto
Specify that we stick to the release and how to run the tests.
2014-07-03Merge commit 'refs/pull/95/head' of github.com:libgit2/git2goCarlos Martín Nieto
2014-07-03Update vendored libgit2 to v0.21.0Carlos Martín Nieto
2014-06-11fix indentationFrank Benkstein
2014-06-09add support for annotated tagsFrank Benkstein
2014-06-07Remove left-over submodule configurationCarlos Martín Nieto
2014-06-07Upate README with static instructionsCarlos Martín Nieto
2014-06-07Don't build with Go 1.0Carlos Martín Nieto
Its cgo linker doesn't support statically linking C libraries.
2014-06-07Tighten up the buildCarlos Martín Nieto
Build as release, and there is no need to install the library, we know where the files are.
2014-06-07Move the settings into the main git2goCarlos Martín Nieto
2014-06-07Really build staticallyCarlos Martín Nieto
2014-06-07hack for travisCarlos Martín Nieto
2014-06-07Adjust travis script to staticCarlos Martín Nieto
2014-06-07Use a submodule for libgit2Carlos Martín Nieto
This makes building the static version easier as we know where the repo is and that it's has a known-good version.
2014-06-03Move some logic into the MakefileCarlos Martín Nieto
This should provide a nice compromise between the scripts and comon commands.
2014-06-03Switch default to static linkingCarlos Martín Nieto
Build in libgit2 statically into git2go by default, removing the need for the right version to be available as a shared object. We do still need to link dynamically against OpenSSL and LibSSH2.
2014-06-03Add scripts to build and use a static libgit2Carlos Martín Nieto
2014-05-31Update travis settingsCarlos Martín Nieto
Build on 1.2 and allow tip to fail. These failures sometimes are our fault, sometimes go's.
2014-05-31Merge: merge analysis now returns the user's preferenceCarlos Martín Nieto
2014-05-26Keep a pointer to the repository in the objects and referencesCarlos Martín Nieto
Otherwise, the garbage collector might decide it's a good idea to throw away the repository instance while the C object still has a pointer to it. Hilarity ensues.
2014-05-25Index: add functions to handle the data structureCarlos Martín Nieto
Index is not just the index file
2014-05-25Give Object and Reference an Onwer accessorCarlos Martín Nieto
This reduces the need to carry around a pointer to the repository as well as the objects.
2014-05-23Merge branch 'repo-ext'Carlos Martín Nieto
2014-05-23Add function to open repository from subpathscloudson
2014-05-23Reference: expose Peel()Carlos Martín Nieto
Peel a reference to a particular type of object, returning an Object, which you then perform a type assertion on.
2014-05-07Merge pull request #90 from libgit2/unchanifyCarlos Martín Nieto
Remove usage of channels for `ForEach`
2014-05-06Packbuilder: use a callback for ForEach instead of a channelCarlos Martín Nieto
Channels provide no means to report an error. Closing a channel could mean anything. This is particularly important when dealing with IO, which we do quite often in the pack builder. Use ForEach which returns an error instead.
2014-05-06Odb: use a callback instead of a channel for ForEachCarlos Martín Nieto
A channel provides no way to specify whether we stopped sending data because of an error or because there is no more data. Therefore, make Odb.ForEach() take a callback with which the user is free to do whatever they need, letting us return en error.
2014-05-04Fix typoCarlos Martín Nieto
2014-05-03Merge pull request #89 from tchap/set-headCarlos Martín Nieto
Implement git_repository_set_head(_detached)
2014-05-03test: adjust to safe commit appendCarlos Martín Nieto
When we create a commit and tell the library to update a ref, we need to make sure to pass the current tip. This is what we should have been doing in a function called 'upateReadme()' anyway. The existing code creates a new root commit, which is not an update.