Commit Graph

723 Commits

Author SHA1 Message Date
Carlos Martín Nieto e7747d3174 travis: build statically 2017-04-14 12:51:13 +02:00
Carlos Martín Nieto 5001942b59 Allow building statically via the "static" build tag 2017-04-14 12:36:42 +02:00
Carlos Martín Nieto 71bdf97227 Merge pull request #366 from LinuxBozo/repository-open-flags
Add new repository open flags
2017-04-14 10:48:01 +02:00
Carlos Martín Nieto 490e8a8722 Merge pull request #368 from cbguder/master
Fix memory leak in Patch.String()
2017-04-14 10:47:39 +02:00
Carlos Martín Nieto 89fc9e7761 Merge pull request #365 from AaronO/fix/memleak-tree-entrybyname
Fix memleaks in Tree.EntryBy(Name/Path/Index), fixes #313
2017-04-13 21:16:30 +02:00
Carlos Martín Nieto 97f1722244 Merge pull request #332 from ezwiebel/rebase-wrapper
Rebase wrapper
2017-04-13 20:50:41 +02:00
Adam Berkovec de521bb2b4 Fix memory leak in Patch.String()
Buffer allocated in Patch.String() was never freed

Signed-off-by: Can Berk Güder <cbguder@pivotal.io>
2017-03-23 12:16:43 -07:00
M. Adam Kendall 7738ebe30a Add new repository open flags 2017-03-07 23:23:24 -05:00
Aaron O'Mullan ee2a023868 Remove unnecessary C.git_tree_entry_free calls ...
As per the docs, these entries belong to the tree and don’t need to be
freed by the caller:
*
https://libgit2.github.com/libgit2/#HEAD/group/tree/git_tree_entry_bynam
e
2017-02-25 02:13:57 +01:00
Aaron O'Mullan f503d918aa Fix memleaks in Tree.EntryBy(Name/Path/Index), fixes #313 2017-02-24 22:55:14 +01:00
Carlos Martín Nieto 4a14260153 Merge pull request #362 from libgit2/cmn/master-tip-static
Update master to latest libgit2 and build statically
2017-01-20 22:55:25 +00:00
Carlos Martín Nieto b020c1140a Update the description of the branches in README. 2017-01-20 13:48:39 +00:00
Carlos Martín Nieto 9f4e0a46b6 Update libgit2 to df4dfaad 2017-01-20 13:20:30 +00:00
Carlos Martín Nieto f037074198 Merge remote-tracking branch 'origin/next' 2017-01-20 00:46:34 +00:00
Carlos Martín Nieto 5d0a4c752a Bump vendored libgit2 to ee89941fa 2017-01-09 22:13:18 +00:00
Carlos Martín Nieto b8a9efd21f Build /v\d+/ branches 2016-12-23 19:14:05 +00:00
ezwiebel 6118c9ba37 LockOSThread in CurrentOperationIndex for git error creation 2016-11-23 17:10:59 +11:00
Carlos Martín Nieto a41e2b6644 Update to 0.25-rc1 2016-11-19 15:09:41 +01:00
Carlos Martín Nieto 4eecbd8d44 Merge pull request #338 from libgit2/cmn/variable-subst
Use variable substitution instead of a wrapper script
2016-11-13 19:31:57 +01:00
ezwiebel a671e67ee8 Took @carlosmn PR review into account 2016-11-01 10:59:32 +11:00
Carlos Martín Nieto 7f426f2435 Only test against 1.5 and up
Go 1.5 is the first one which supports the variable replacement we're
using for the flags. Any older versions aren't supported by the Go team
now that 1.7 is out, so you should be on one of these versions.
2016-11-01 00:17:51 +01:00
Carlos Martín Nieto 9c5fb973fc Get rid of the with-static.sh script
CGO can perform variable substitution in the directives, so we don't
need to use a script to set up the variables; we can let the go tool do
it for us.
2016-11-01 00:17:51 +01:00
Carlos Martín Nieto 1c8297ab83 Merge pull request #355 from libgit2/cmn/travis-branches
travis: only build master and next
2016-11-01 00:16:51 +01:00
Carlos Martín Nieto 9af9dd3ad7 Merge pull request #354 from libgit2/cmn/panic-threading
Add Feature query support & panic if libgit2 is not thread-aware
2016-11-01 00:16:27 +01:00
Carlos Martín Nieto 28bc42ce82 travis: only build master and next
The other branches will get built as part of a PR.
2016-10-31 21:34:00 +01:00
Carlos Martín Nieto a37f7f30ff Panic if libgit2 is not thread-aware
Go calling C is inherently multi-threaded. If libgit2 cannot handle
threading, then we're going to crash at some random point. Crash right
at the start so we know what's happening.
2016-10-31 21:14:08 +01:00
Carlos Martín Nieto adb1770ff3 Add Features() to retrieve the compile-time features of libgit2 2016-10-31 21:09:24 +01:00
Carlos Martín Nieto 0b98f7beae Merge pull request #348 from MagicalTux/git2go_issue_314
Make New*BackendFromC take unsafe.Pointer as argument
2016-10-31 20:35:54 +01:00
Carlos Martín Nieto 098cd42070 Merge pull request #353 from libgit2/update-next
Update to libgit2 a051ee3
2016-10-31 20:15:48 +01:00
Carlos Martín Nieto 3cc2126300 Merge pull request #319 from netnose/remote-refinements
Remote Refinements
2016-10-31 20:04:35 +01:00
Carlos Martín Nieto 42a90d4e68 Merge pull request #351 from ezwiebel/index-remove-directory
Implement git_index_remove_directory in index wrapper
2016-10-31 20:03:05 +01:00
Carlos Martín Nieto e8062bcadd Update to libgit2 a051ee3 2016-10-31 19:31:43 +01:00
ezwiebel c18c8693fe Implement git_index_remove_directory in index wrapper 2016-10-20 15:49:24 +11:00
Mirko Nosenzo 4567e4f7fa Merge remote-tracking branch 'upstream/v24' into remote-refinements 2016-10-08 11:33:56 +02:00
Mirko Nosenzo 717a47f754
Remote Rename Fix
Problem string array is returned if no error is occurred
2016-10-08 11:18:07 +02:00
Carlos Martín Nieto 53594d7581 Merge pull request #345 from kdambekalns/commit-message-raw
Add method to fetch raw commit message
2016-10-03 02:54:48 -07:00
Carlos Martín Nieto e9668545c9 Merge pull request #321 from netnose/checkout-callbacks
Checkout callbacks
2016-10-03 02:53:29 -07:00
Carlos Martín Nieto 2209188637 Merge pull request #322 from calavera/ssh_memory_credentials
Add NewCredSshKeyFromMemory to the credentials helpers.
2016-10-03 02:39:58 -07:00
Carlos Martín Nieto a3c2ac18dc Merge pull request #347 from geordie/master
Write index before writing index tree in seedTestRepo test helper
2016-10-03 02:37:05 -07:00
Carlos Martín Nieto c94904ea37 Merge pull request #341 from mdaffin/branchiterator-foreach-errors
Add check for ErrIterOver in BranchIterator.ForEach
2016-10-03 02:31:58 -07:00
Carlos Martín Nieto ddc1515c8e Merge commit 'refs/pull/331/head' of github.com:libgit2/git2go 2016-10-03 11:28:38 +02:00
Mark Karpeles b829eb1edb odb & refdb: make New*BackendFromC take unsafe.Pointer as argument allowing argument to be set from different package 2016-09-30 23:00:20 +09:00
Geordie Henderson a16e24a99e Write the index before writing the index tree in seedTestRepo test helper func 2016-09-16 21:49:54 -07:00
ezwiebel 03e10c5639 Fix reference bug introduced with RebaseOptions implementation 2016-09-14 14:42:58 +10:00
ezwiebel adc3a4bd89 Add DefaultRebaseOptions() [git_rebase_init_options(GIT_REBASE_OPTIONS_VERSION)] service to wrapper 2016-09-13 16:03:16 +10:00
ezwiebel e00b0831aa Add RebaseOpen() service to wrapper 2016-09-12 15:58:53 +10:00
Karsten Dambekalns d2b8c99ba7 Add method to fetch raw commit message
The existing `Commit.Message()` returns the trimmed commit message. In some cases
it is important to retrieve the exact commit message, even if it contains surrounding
newlines.

This adds a new `Commit.RawMessage()` to be able to do that.
2016-09-09 15:27:07 +02:00
Michael Daffin 74bc3c6242 Add check for ErrIterOver in BranchIterator.ForEach
The BranchIterator.ForEach currently returns the ErrIterOver error if no
error had occured during the iteration. This leads to a rather unhelpful
blank error message with the error code -31 when iterating over the
branches.

This commit adds a check for ErrIterOver at the end of the ForEach
method so that the client code only has to worry about checking for nil
as apose to checking for the ErrIterOver error.
2016-09-05 15:56:09 +01:00
Alan Johnson 208cdaef76 Removes redundant iteration over check. 2016-08-29 09:10:56 -04:00
Mirko Nosenzo 6ffad323ba
Removed Useless Argument Check 2016-08-28 11:21:10 +02:00