| Age | Commit message (Collapse) | Author |
|
Add a few reference utility functions
|
|
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.
|
|
|
|
Add Is$Type methods to Reference.
|
|
On top: fix git_buf handling and rename signature
This fixes #57, #54.
Conflicts:
git.go
reference.go
repository.go
submodule.go
|
|
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.
|
|
|
|
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.
|
|
This is only needed once per package. Having it on every file makes the
build system ask about it n times, which is silly.
|
|
reference: get references out of the iterator
|
|
This allows us to restrict which constants the compiler will allow
through, and makes the sorting in the documentation better.
|
|
Make the names look more like what you'd expect from Go.
|
|
Allow getting references out of the iterator instead of just names.
|
|
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.
|
|
Wrap the reference iterators, and provide a Iter() function to get
them through a channel.
|
|
|