Commit Graph

486 Commits

Author SHA1 Message Date
David Calavera 755721e684 Add BranchIterator#ForEach.
This abstracts the branch iteration from the user.
2015-02-19 11:44:56 +01:00
Matthew Donoughe 675b9b0df9 use v22 travis results 2015-02-13 22:13:57 -05:00
Matthew Donoughe 8bb707b827 return to correct directory for main build 2015-02-13 22:07:54 -05:00
Matthew Donoughe 0d3cc8be8a sudo make install? 2015-02-13 22:00:41 -05:00
Matthew Donoughe 5be2387aeb install libgit2 on travis ci 2015-02-13 21:43:16 -05:00
Matthew Donoughe 43f6a75066 remove static git support files 2015-02-13 21:43:16 -05:00
Carlos Martín Nieto 94b1f7d07d Merge pull request #173 from AaronO/add/graph-methods
Add bindings for git_graph_* methods
2015-02-13 08:45:14 +01:00
Aaron O'Mullan dddcbb71c4 Remove "Graph" prefix on method names 2015-02-12 18:49:54 +01:00
Aaron O'Mullan c10445cd67 Add bindings for git_graph_* methods
Add graph.go
2015-02-11 12:55:16 +01:00
Carlos Martín Nieto ce8bcbf966 Merge pull request #172 from motemen/fix-test-patch-prefix
Fix test to force diff prefixes.
2015-01-30 14:50:37 +01:00
motemen 3e05c10385 Fix test to force diff prefixes. 2015-01-30 13:44:29 +09:00
Carlos Martín Nieto 2bcbe6bd2d Merge commit '92a1f92d912cdb5f68da8c1e5e3a4d1ebfd282db' 2015-01-29 15:17:54 +01:00
joseferminj 92a1f92d91 Add TargetDirectory field to Checkout options.
TargetDirectory field indicates a alternative checkout path to workdir.
2015-01-29 15:17:46 +01:00
Carlos Martín Nieto 2b17dffc07 Merge pull request #171 from pks-t/submodule-foreach-fix
Submodule foreach fix
2015-01-29 15:15:28 +01:00
Patrick Steinhardt 2e481dbc79 Fix ForeachSubmodule panicing.
As the SubmoduleVisitor function is called from inside libgit2 we
cannot use Go types in its signature. Fix by using C types
instead.
2015-01-28 15:07:32 +01:00
Patrick Steinhardt 1107c6824f Add test triggering ForeachSubmodule panic. 2015-01-28 15:07:27 +01:00
Carlos Martín Nieto 4a17f8038d Merge pull request #169 from tarrant/master
Add Go functions for git_config_find_* functions
2015-01-15 11:13:21 +01:00
Tarrant Rollins 548bb9b5e9 Add Go functions for git_config_find_* functions
ConfigFindGlobal -> git_config_find_global
ConfigFindSystem -> git_config_find_system
ConfigFindXDG    -> git_config_find_xdg
2015-01-14 13:38:35 -08:00
Carlos Martín Nieto 57412d0293 Explain the difference between dynamic and static versions
With the release of libgit2 v0.22 we can link against a version of
library we've wrapped in more than a PoC sense.

Explain the difference and say how to use each version.
2015-01-14 14:11:19 +01:00
Carlos Martín Nieto e8da5affe7 Link dynamically to libgit2
With libgit2 v0.22 released, we can expect its API and ABI to remain
stable when installed on the system.

Linking dynamically allows us to use the go tool alone to build and
install the package.
2015-01-14 13:52:52 +01:00
Carlos Martín Nieto 62272c41c6 Update vendored libgit2 2015-01-12 18:01:43 +01:00
Carlos Martín Nieto 69be70646c Merge pull request #167 from calavera/fix_git_submodules
Fix inconsistent function call in Submodule.
2015-01-09 10:21:20 +01:00
Carlos Martín Nieto d260f21be3 Merge pull request #165 from calavera/remote_prune_refs
Add prune methods to Remote.
2015-01-09 10:17:55 +01:00
Carlos Martín Nieto d54ebd5f5b Merge pull request #166 from benburkert/master
Add git note support
2015-01-09 10:17:19 +01:00
David Calavera ea7f567756 Remove version from opts structure.
It's not necessary.
2015-01-08 15:06:35 -08:00
David Calavera 22f4a4edaa Do not double check if the signature is nil. 2015-01-08 14:21:29 -08:00
David Calavera 9b914e07cc Add Submodule.Update method.
Update libgit2 to a version that includes https://github.com/libgit2/libgit2/pull/2804.
2015-01-08 13:44:58 -08:00
Ben Burkert 04e3c7f6cd
define Note methods on pointers 2015-01-08 11:03:15 -08:00
Ben Burkert 4989fc5a15
Add git note support 2015-01-07 11:56:33 -08:00
David Calavera 8adbc08d70 Fix inconsistent function call in Submodule. 2015-01-06 14:02:44 -08:00
David Calavera dbddb88a8c Add prune methods to Remote. 2015-01-05 11:58:36 -08:00
Carlos Martín Nieto d57246fb74 Update to libgit2 master
This gets rid of the Push object. All network now goes through the
Remote object.
2015-01-04 17:05:11 +00:00
Carlos Martín Nieto dff9badc05 Merge commit '18aea4bfe89b83c5e2d6d55daa68efa6180655cc' 2015-01-04 12:14:12 +00:00
Henning Perl 18aea4bfe8 Add git_diff_get_stats()
This commit adds git_diff_get_stats() as well as functions to query the
stats for insertions, deletions, and changed files.
2015-01-04 12:13:46 +00:00
Carlos Martín Nieto dae3004ca3 Merge pull request #162 from libgit2/revert-159-cgo-directives
Revert "Make the cgo tool do more linking work"
2014-12-31 19:46:38 +00:00
Carlos Martín Nieto ef83908059 Revert "Make the cgo tool do more linking work" 2014-12-31 19:43:20 +00:00
Carlos Martín Nieto db3754ce8d Merge pull request #159 from libgit2/cgo-directives
Make the cgo tool do more linking work
2014-12-30 10:09:54 +00:00
Carlos Martín Nieto 42414248f9 Merge pull request #150 from sqs/DiffOptions_OldPrefix_and_NewPrefix
Diff: heed DiffOptions fields OldPrefix and NewPrefix
2014-12-30 10:09:20 +00:00
Quinn Slack d2a9d7768b heed DiffOptions fields OldPrefix and NewPrefix 2014-12-30 02:03:20 -08:00
Carlos Martín Nieto 8f6e13bd08 Make the cgo tool do more linking work
The cgo directives let us do a lot more than I previously thought, so we
can use this to make the building process of git2go go through the go
tool directly rather than via the script.

libgit2 still needs to be built manually, so we do still require make,
but only for building libgit2. Once that's built, any modifications to
git2go's own code can be built with

    go build
2014-12-27 10:59:19 +00:00
Carlos Martín Nieto 74957c2ae6 Add missing return type 2014-12-18 23:02:53 +00:00
David Calavera d69c771453 Update libgit2
Fix calls to C.git_treebuilder_create and C.git_treebuilder_write.
2014-12-18 22:59:08 +00:00
Carlos Martín Nieto 6f79e6e60b Merge pull request #154 from libgit2/cmn/update
Update to master
2014-12-14 21:57:06 +01:00
Carlos Martín Nieto 0202f152ac Add the new callbacks for Remote.Push()
This unifies the types with the Push struct, in preparation for its
deletion.
2014-12-13 01:23:40 +01:00
Carlos Martín Nieto 63116ea57e Update to master
This deprecates the Push struct in favour of Remote.Push()
2014-12-13 00:25:11 +01:00
Carlos Martín Nieto a9d993f3d1 Remove useless includes 2014-12-11 02:59:07 +01:00
Carlos Martín Nieto cb6201b633 Add missing thread-locking 2014-12-11 02:46:42 +01:00
Carlos Martín Nieto 1198f829b1 Merge pull request #148 from joseferminj/export-patch-from-branches
Export PatchFromBuffers function.
2014-12-11 02:42:29 +01:00
Carlos Martín Nieto 7762e1a3a9 Merge pull request #138 from sqs/check-MakeGitError-thread-lock
Add script for checking thread locks in funcs that call MakeGitError
2014-12-09 00:47:41 +01:00
Quinn Slack 57095bafe7 only check Go source files for non-thread-locked MakeGitError calls 2014-12-08 11:54:04 -08:00