Jesse Ezell
5590078e6f
remove channel based iteration for branch / ref. Add ReferenceNameIterator. All iterators use Next(). Remove interfaces.
2014-03-20 20:28:41 -07:00
Jesse Ezell
37b950bc90
various improvements to interface
2014-03-19 20:24:19 -07:00
Jesse Ezell
27bea93efe
split out name iterator
2014-03-19 00:36:00 -07:00
Jesse Ezell
006286edb7
remove Branch struct, unify reference iterators
2014-03-19 00:19:02 -07:00
Jesse Ezell
5f01bd7abd
add branch iterator / remove useless repo from reference iterator
2014-03-12 15:49:11 -07:00
Carlos Martín Nieto
fc6d0fbfff
Merge pull request #59 from libgit2/cmn/refs
...
Add a few reference utility functions
2014-02-27 17:03:39 +01:00
Carlos Martín Nieto
c431fe3c2c
Merge pull request #60 from libgit2/cmn/reflogs-default
...
Allow for a default in reflog messages
2014-02-27 17:03:20 +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
2c8de242ee
Allow for a default in reflog messages
...
We don't have a way to represent a NULL string, so if the user passes an
empty string, let's pass NULL down so we tell libgit2 to use the default.
2014-02-26 15:01:23 +01:00
Carlos Martín Nieto
ca2c3c6db2
Add a few reference utility functions
2014-02-26 14:51:04 +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
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
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
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
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
4abda3a60b
reference: get references out of the iterator
...
Allow getting references out of the iterator instead of just names.
2013-08-09 18:22:26 +02:00
Carlos Martín Nieto
f5fc7e5f78
Reference: adjust to iterator changes
...
The Library's iterators now can return either the reference or the
reference's name. As the name is what we're set up for, rename the
functions appropriately so we compile against altest development.
2013-06-17 02:08:13 +02:00
Carlos Martín Nieto
931f187301
Implement a reference iterator
...
Wrap the reference iterators, and provide a Iter() function to get
them through a channel.
2013-05-23 11:13:42 +02:00
Carlos Martín Nieto
0b2f16665d
Wrap immutable refs
2013-03-07 21:01:21 +01:00