Commit Graph

368 Commits

Author SHA1 Message Date
Ben Navetta c8529e79da don't return anything from StatusList.Free 2014-08-25 17:41:35 -04:00
Carlos Martín Nieto 1377c8f3d2 Update vendored libgit2 version to v0.21.1 2014-08-25 15:45:40 +02:00
Carlos Martín Nieto 106ebe2fc4 Handle empty slices in CreateBlobFromBuffer()
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-25 15:44:01 +02:00
Carlos Martín Nieto 91fd186186 Merge pull request #105 from mattes/patch-1
Make sure install/lib dir exists. Fixes #104
2014-08-25 15:26:33 +02:00
David Calavera 29840d28ad Extract data into a go struct. 2014-08-22 22:36:18 -07:00
Ben Navetta 1cb654e4f2 add git_status_foreach binding 2014-08-19 08:51:18 -04:00
Ben Navetta fe1e6b83ed comment out issue with entry count 2014-08-19 08:08:46 -04:00
Ben Navetta 8fd7c2c609 add StatusFile function 2014-08-18 23:12:45 -04:00
Ben Navetta a093e20a88 add status option support 2014-08-18 22:58:53 -04:00
Ben Navetta f954871968 start on status tests; fix bug in Repository.StatusList() 2014-08-18 22:19:06 -04:00
Ben Navetta b831ae04aa add StatusList() to Repository 2014-08-18 20:34:57 -04:00
Ben Navetta 0513670745 add StatusList.EntryCount() 2014-08-18 20:11:14 -04:00
Ben Navetta 37ccc4c00d add ByIndex, reorder to match other files 2014-08-18 20:04:32 -04:00
Ben Navetta 39d825a2a8 status data types 2014-08-18 19:42:34 -04:00
Matthias Kadenbach c1ed1bc545 Make sure install/lib dir exists. Fixes #104 2014-08-06 04:07:15 +02:00
David Calavera 94d207e11c Add Repository#RevParseExt. 2014-07-24 21:03:50 -07:00
David Calavera 691d8f23ba Add Repository#RevParseSingle. 2014-07-24 17:41:10 -07:00
David Calavera 43b6e0b154 Make a new pointer to pass to git_revparse. 2014-07-24 17:20:22 -07:00
David Calavera 1e651aaa22 Add simple test for `rev-parse HEAD`. 2014-07-24 17:08:58 -07:00
David Calavera 8bbcdd65a6 Move RevSpec#From and RevSpec#To to struct methods. 2014-07-24 17:02:14 -07:00
David Calavera 3003e5e190 Add Repository#RevParse. 2014-07-24 15:37:59 -07:00
Carlos Martín Nieto 213a1bc876 Merge pull request #101 from bargez/patch-1
Fix a typo in git2go path
2014-07-12 21:20:23 +02:00
Bartosz Gęza f48c27e43c Fix a typo in git2go path 2014-07-12 20:49:50 +02:00
Carlos Martín Nieto ce7a12da68 travis: build with Go 1.3 2014-07-03 08:48:41 +02:00
Carlos Martín Nieto c7ac950815 Update README
Specify that we stick to the release and how to run the tests.
2014-07-03 08:47:38 +02:00
Carlos Martín Nieto d117fc9aa8 Merge commit 'refs/pull/95/head' of github.com:libgit2/git2go 2014-07-03 08:37:23 +02:00
Carlos Martín Nieto ae5efcda9b Update vendored libgit2 to v0.21.0 2014-07-03 08:36:04 +02:00
Frank Benkstein b3306bee41 fix indentation 2014-06-11 19:55:24 +02:00
Frank Benkstein bbdc7a825d add support for annotated tags 2014-06-09 23:19:17 +02:00
Carlos Martín Nieto bc5cfaffcb Remove left-over submodule configuration 2014-06-07 19:29:45 +02:00
Carlos Martín Nieto 10c058dcb9 Upate README with static instructions 2014-06-07 19:22:09 +02:00
Carlos Martín Nieto 4b681f9207 Don't build with Go 1.0
Its cgo linker doesn't support statically linking C libraries.
2014-06-07 19:14:11 +02:00
Carlos Martín Nieto a2b14b5be4 Tighten up the build
Build as release, and there is no need to install the library, we know
where the files are.
2014-06-07 19:12:33 +02:00
Carlos Martín Nieto 12a3a1e05c Move the settings into the main git2go 2014-06-07 18:57:46 +02:00
Carlos Martín Nieto aabeb7f585 Really build statically 2014-06-07 15:43:05 +02:00
Carlos Martín Nieto 6862c2c82d hack for travis 2014-06-07 14:07:15 +02:00
Carlos Martín Nieto 3da96c3dd7 Adjust travis script to static 2014-06-07 03:27:00 +02:00
Carlos Martín Nieto c734fc2a6b Use a submodule for libgit2
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-07 03:03:04 +02:00
Carlos Martín Nieto 0646294282 Move some logic into the Makefile
This should provide a nice compromise between the scripts and comon
commands.
2014-06-03 18:35:09 +02:00
Carlos Martín Nieto 29a983b68f Switch default to static linking
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-03 17:47:53 +02:00
Carlos Martín Nieto de4f42f476 Add scripts to build and use a static libgit2 2014-06-03 12:03:00 +02:00
Carlos Martín Nieto 3ca566e105 Update travis settings
Build on 1.2 and allow tip to fail. These failures sometimes are our
fault, sometimes go's.
2014-05-31 16:51:51 +02:00
Carlos Martín Nieto 7906bdbdce Merge: merge analysis now returns the user's preference 2014-05-31 16:47:35 +02:00
Carlos Martín Nieto 8a73c75f1a Keep a pointer to the repository in the objects and references
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-26 09:28:07 +02:00
Carlos Martín Nieto f953d4e5c7 Index: add functions to handle the data structure
Index is not just the index file
2014-05-25 18:12:50 +02:00
Carlos Martín Nieto 2942e18d05 Give Object and Reference an Onwer accessor
This reduces the need to carry around a pointer to the repository as
well as the objects.
2014-05-25 09:12:10 +02:00
Carlos Martín Nieto ec97cb4473 Merge branch 'repo-ext' 2014-05-23 16:02:36 +02:00
cloudson 591a67fef8 Add function to open repository from subpaths 2014-05-23 16:02:30 +02:00
Carlos Martín Nieto 22bcd7decf Reference: expose Peel()
Peel a reference to a particular type of object, returning an Object,
which you then perform a type assertion on.
2014-05-23 11:37:00 +02:00
Carlos Martín Nieto f5e1252d6e Merge pull request #90 from libgit2/unchanify
Remove usage of channels for `ForEach`
2014-05-07 15:12:00 +02:00