Commit Graph

992 Commits

Author SHA1 Message Date
Carlos Martín Nieto d9dfc4bce8 Add support for hostkey certificates
While they're not exactly certificates, they belong in the same
category.
2014-10-15 16:57:32 +02:00
Carlos Martín Nieto a81abd10ca Merge branch 'fetchhead'
Conflicts:
	remote.go
2014-10-15 15:59:08 +02:00
Jess Sheneberger d917a13aca add plumbing for update fetch head on remotes 2014-10-15 15:58:33 +02:00
Carlos Martín Nieto 17a9214307 Update to libgit2 master
The option to ignore the server's certificate has been removed, replaced
witha  callback for the user to perform their own checking.

Remote.Fetch() now performs opportunistic updates and takes a list of
refspecs to use as the active set for a particular fetch.
2014-10-15 15:56:59 +02:00
Carlos Martín Nieto 5eda8d6935 Merge pull request #109 from roguePanda/git_status
Address issue #108
2014-09-11 09:16:39 +02:00
Carlos Martín Nieto c68241c3f0 Merge pull request #117 from piger/dev
add Index#RemoveByPath.
2014-09-09 10:51:44 +02:00
Daniel Kertesz c2f6381252 add Index#RemoveByPath. 2014-09-07 12:45:52 +02:00
Carlos Martín Nieto 756c8a7e8b Merge pull request #116 from calavera/sync_with_libgit2_master
Sync with libgit2 master.
2014-09-04 17:10:37 +02:00
David Calavera ced242954c Update vendored libgit2 version to master. 2014-09-04 07:57:10 -07:00
Ben Navetta d4734a41d5 remove unused status version field 2014-09-04 10:17:31 -04:00
Ben Navetta 1520978dcd give status option flags their own type 2014-09-04 10:15:13 -04:00
Carlos Martín Nieto db113288b3 Merge pull request #113 from CMGS/master
enhance checkout, add CheckoutTree method
2014-09-04 16:02:21 +02:00
Carlos Martín Nieto cea203d01c Merge pull request #115 from surma-dump/feature/empty_refname
Repository.CreateCommit: Allow empty refname for non-update commit
2014-09-04 14:38:36 +02:00
Alexander Surma d196da40ed Repository.CreateCommit: Only allocate CStr on non-empty refname 2014-09-04 09:57:54 +02:00
David Calavera 9bec36a0b0 Update clone options to be in sync with libgit2 master.
Remove missing constants.
2014-09-03 18:08:48 -07:00
Alexander Surma fe452620c6 Repository.CreateCommit: Allow empty refname for non-update commit 2014-09-01 19:27:44 +02:00
CMGS 2f93ce39cc embrace static types 2014-08-28 15:40:21 +08:00
CMGS e5e9636ce0 enhance checkout, add CheckoutTree method 2014-08-27 17:03:21 +08:00
Carlos Martín Nieto 84597241e0 Exit when pkg-config isn't found
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-26 23:32:27 +02:00
Carlos Martín Nieto 0f79d63fd5 Merge calvera/rev-parse 2014-08-26 12:35:17 +02:00
Carlos Martín Nieto 0d58580249 Remove unnecessary heap allocation 2014-08-26 12:35:05 +02:00
Ben Navetta 80997c6fa5 fix status list to handle null head_to_index in entries 2014-08-25 23:18:00 -04:00
Ben Navetta 0059b26255 add thread locking to status api 2014-08-25 18:20:54 -04:00
Ben Navetta 33ae83f4d9 remove status_foreach binding 2014-08-25 18:15:36 -04:00
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