Commit Graph

128 Commits

Author SHA1 Message Date
Jesse Ezell baf4a84336 Merge branch 'master' of https://github.com/libgit2/git2go into add-branch-lookup 2014-02-26 08:45:44 -08:00
Jesse Ezell fe509411a5 Add thread locking 2014-02-26 08:45:38 -08:00
Jesse Ezell a728f70358 cleanup add-branch 2014-02-26 07:33:50 -08:00
Jesse Ezell 6a8e126cb9 Merge branch 'branch_functions' of http://github.com/JohannWeging/git2go into merge-add-branch-lookup 2014-02-26 07:32:16 -08:00
Carlos Martín Nieto 1c1f7bd1fa Merge branch 'more-errors' 2014-02-26 16:15:10 +01:00
Carlos Martín Nieto 00ea11691b Convert the rest of the errors 2014-02-26 16:14:31 +01:00
Jesper Hansen 499f52a354 Added git error code to the error object. 2014-02-26 16:10:00 +01:00
Carlos Martín Nieto 3e5586bd8d Remove 'oid' as id name
Following the cleanup from libgit2, let's not use 'oid' unless we mean
the name of the data type. In the other cases, we mean an identifier,
hence the name 'id'.
2014-02-26 15:30:16 +01:00
Carlos Martín Nieto 5f4283fac3 Merge branch 'index-entries' 2014-02-26 15:22:53 +01:00
Carlos Martín Nieto 14f902afed Adjust to oid -> id 2014-02-26 15:22:48 +01:00
Carlos Martín Nieto 1e01cae286 Remove pointer to git_index_entry
We have all the data
2014-02-26 15:19:07 +01:00
Carlos Martín Nieto 786393a380 Merge pull request #42 from libgit2/cmn/config
Wrap some more config functions
2014-02-26 10:37:35 +01:00
Carlos Martín Nieto fc0a2f56e8 Lock the thread so we can get the error message 2014-02-26 10:37:02 +01:00
Carlos Martín Nieto af2446b1da Add iterators and ConfigEntry 2014-02-26 10:37:01 +01:00
Carlos Martín Nieto 129105d410 Add a few more missing config functions 2014-02-26 10:36:35 +01:00
Carlos Martín Nieto fbd8698002 Add a few missing config setters and getters 2014-02-26 10:30:15 +01:00
Carlos Martín Nieto c6d1bde37c Return SubmoduleRecurse 2014-02-23 16:08:19 +01:00
Carlos Martín Nieto 0a1052b0e0 Merge pull request #52 from ursachec/master
Support for git_odb_hash.
2014-02-23 16:02:35 +01:00
Carlos Martín Nieto af80cc73ad Merge pull request #51 from Tobscher/master
added write method to index
2014-02-23 15:49:31 +01:00
Carlos Martín Nieto 8efcdd0e16 Merge pull request #55 from lye/add-is-x-reference-methods
Add Is$Type methods to Reference.
2014-02-23 15:43:02 +01:00
Carlos Martín Nieto 1b09b03c0e Merge commit 'refs/pull/53/head' of github.com:libgit2/git2go
On top: fix git_buf handling and rename signature

This fixes #57, #54.

Conflicts:
	git.go
	reference.go
	repository.go
	submodule.go
2014-02-23 15:31:22 +01:00
lye 53b5ecacbe Add Is$Type methods to Reference.
This patch adds the following methods to Reference:

	IsBranch() bool
	IsRemote() bool
	IsTag() bool

which correspond to the `git_reference_is_$type` functions in libgit2.
2014-02-20 00:28:31 -06:00
Aidan Nulman f66502aaf4 update git2go to support latest libgit2 development commit (id: 66af84) 2014-01-29 18:01:26 -05:00
Claudiu-Vlad Ursache bf209ca2ba Remove unnecessary cast. 2014-01-26 12:36:05 +01:00
Claudiu-Vlad Ursache 53f2ebce5f Test for Odb hash function. 2014-01-25 22:18:43 +01:00
Claudiu-Vlad Ursache 4ce2eb713b Add Odb hash function. 2014-01-25 22:18:32 +01:00
Tobias Haar 054268a634 added write method 2014-01-24 01:10:23 +00:00
Carlos Martín Nieto 66e1c47619 Merge pull request #41 from libgit2/cmn/threading
Lock the OS thread when acessing errors
2013-12-18 07:19:02 -08:00
Carlos Martín Nieto a40bdfd420 Lock the OS thread when acessing errors
The library stores error information in thread-local storage, which
means we need to make sure that the Go runtime doesn't switch OS
threads between the time we call a function and th time we attempt to
retrieve the error information.
2013-12-18 16:18:32 +01:00
Vicent Martí 625ffd022e Merge pull request #47 from kron4eg/tree_builder_mem_leak
Fix memleak, TreeBuilder, Config and Parent commit
2013-11-18 07:24:37 -08:00
Artiom Di 5e30c192e9 Fix memleak for Config and parent commit objects 2013-11-14 15:24:43 +02:00
Artiom Di 295ec8894c Fix memleak, free TreeBuilder 2013-11-14 13:08:34 +02:00
Carlos Martín Nieto d8c3772e35 ObjectType: capitalise Tag 2013-11-14 00:24:44 +01:00
Carlos Martín Nieto a5ad8de506 Don't repeat the pkg-config line
This is only needed once per package. Having it on every file makes the
build system ask about it n times, which is silly.
2013-11-14 00:23:04 +01:00
Carlos Martín Nieto b5b891a03d Packbuilder: adjust to changes in dev 2013-11-13 06:53:10 +01:00
Johann Weging 961db94aa2 branch: Deleted BranchForeach 2013-10-30 15:01:08 +01:00
Johann Weging ed86064871 branch:BranchForeach: Correct handling of the ListFlags 2013-10-10 10:39:49 +02:00
Johann Weging 4c4da3a846 branch: Renamed BranchLookup to LookupBrnach 2013-10-08 14:52:22 +02:00
Johann Weging 6372ec052f branch: Renamed BranchCreate to CreateBranch 2013-10-08 14:49:03 +02:00
Johann Weging 771e0c11bc branch: Variable names don't repeat its type name any longer 2013-10-08 14:44:11 +02:00
Johann Weging f03cec5375 branch: Changed BranchT to BranchType 2013-10-08 14:39:05 +02:00
Johann Weging ff5150e6c9 branch: Implemented branch functions. 2013-10-08 02:07:06 +02:00
Carlos Martín Nieto f583ad8abd Remove leftover reference to old const 2013-09-22 00:05:37 +02:00
Vicent Martí 6c97b9ac9d Merge pull request #36 from libgit2/ref-iter
reference: get references out of the iterator
2013-09-17 08:03:50 -07:00
Vicent Martí da5033fb98 Merge pull request #38 from libgit2/odb-stream
Wrap the odb streams
2013-09-17 08:03:34 -07:00
Vicent Martí b5d4197108 Merge pull request #39 from libgit2/goify-consts
Goify consts
2013-09-17 08:03:06 -07:00
Carlos Martín Nieto b5aca803db Give each const group a type
This allows us to restrict which constants the compiler will allow
through, and makes the sorting in the documentation better.
2013-09-12 10:46:20 +02:00
Carlos Martín Nieto 00e3df94c7 Camel-case constants
Make the names look more like what you'd expect from Go.
2013-09-12 10:40:57 +02:00
Carlos Martín Nieto ef5fc37870 Tree: add EntryByPath
The more powerful version of EntryByName.
2013-09-12 10:16:49 +02:00
Carlos Martín Nieto 008e1efb35 Object types are constants
Define the object type values as constants
2013-09-11 23:01:27 +02:00