summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-02-26Convert the rest of the errorsCarlos Martín Nieto
2014-02-26Added git error code to the error object.Jesper Hansen
2014-02-26Remove 'oid' as id nameCarlos Martín Nieto
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-26Merge branch 'index-entries'Carlos Martín Nieto
2014-02-26Adjust to oid -> idCarlos Martín Nieto
2014-02-26Remove pointer to git_index_entryCarlos Martín Nieto
We have all the data
2014-02-26Allow for a default in reflog messagesCarlos Martín Nieto
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-26Add a few reference utility functionsCarlos Martín Nieto
2014-02-26Bundle consts more idiomatically; add GitLineType alias.lye
2014-02-26Unwrap DiffLine; add types for git_diff_flag_t and git_delta_t.lye
2014-02-26Merge pull request #42 from libgit2/cmn/configCarlos Martín Nieto
Wrap some more config functions
2014-02-26Lock the thread so we can get the error messageCarlos Martín Nieto
2014-02-26Add iterators and ConfigEntryCarlos Martín Nieto
2014-02-26Add a few more missing config functionsCarlos Martín Nieto
2014-02-26Add a few missing config setters and gettersCarlos Martín Nieto
2014-02-24Merge branch 'master' into custom_odbAidan Nulman
Conflicts: git.go reference.go repository.go submodule.go
2014-02-24add custom refdb backend supportAidan Nulman
2014-02-23Pre-emptively copy data when marshalling diff callback data.lye
When marshalling diff callback data to Go structs, any `char*` need to be pre-emptively copied onto Go's heap as they're invalidated as soon as our callback function returns. This patch adds this extra copy before sending the value to the channel, which fixes a bug wherein `DiffLine.Content`, `DiffFile.Path` and `DiffHunk.Header` would previously return garbage data.
2014-02-23Export the constants and enumerations for diffs.lye
It is possible that the typed enums from libgit2 should be exported as distinct types rather than numeric constants (e.g, `git_delta_t` and `git_line_t` should be typed), but this has not been done in this patch.
2014-02-23Return SubmoduleRecurseCarlos Martín Nieto
2014-02-23Merge pull request #52 from ursachec/masterCarlos Martín Nieto
Support for git_odb_hash.
2014-02-23Merge pull request #51 from Tobscher/masterCarlos Martín Nieto
added write method to index
2014-02-23Merge pull request #55 from lye/add-is-x-reference-methodsCarlos Martín Nieto
Add Is$Type methods to Reference.
2014-02-23Merge commit 'refs/pull/53/head' of github.com:libgit2/git2goCarlos Martín Nieto
On top: fix git_buf handling and rename signature This fixes #57, #54. Conflicts: git.go reference.go repository.go submodule.go
2014-02-20Add partial diff/patch functionality.lye
This commit adds barebones capacity to generate diffs from two trees and to emit those as git-style diffs (via `Patch.String`), or to enumerate the files/hunks/lines in the diff to emit the data yourself. The walk functions have been implemented in the same manner as the Odb walking methods. Note that not all of the functionality is implemented for either the `git_diff_*` nor the `git_patch_*` functions, and there are unexposed constants which would likely be useful to add.
2014-02-20Add Is$Type methods to Reference.lye
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-01-29add OdbBackend.Free() and the C it wraps; go fmt odb.goAidan Nulman
2014-01-29Merge branch 'catchupTo66af84' into custom_odbAidan Nulman
Conflicts: git.go reference.go repository.go submodule.go
2014-01-29update git2go to support latest libgit2 development commit (id: 66af84)Aidan Nulman
2014-01-28Merge branch 'master' into custom_odbAidan Nulman
2014-01-26Remove unnecessary cast.Claudiu-Vlad Ursache
2014-01-25Test for Odb hash function.Claudiu-Vlad Ursache
2014-01-25Add Odb hash function.Claudiu-Vlad Ursache
2014-01-24added write methodTobias Haar
2014-01-06wip wrapping git_remoteJason Toffaletti
2014-01-06minorJason Toffaletti
2014-01-05wrappers for git_cred, git_transfer_progress. don't call nil callbacks.Jason Toffaletti
2014-01-04work in progress wrapping git_cloneJason Toffaletti
2014-01-02add git_submodule_recurse_t typeJason Toffaletti
2013-12-20remove unnecessary commentAidan Nulman
2013-12-20Add OdbBackend constructorAidan Nulman
2013-12-19Rename constructor functions to New...Aidan Nulman
2013-12-19Refactor InitRepositoryWCustomOdbBackend() into component functionsAidan Nulman
2013-12-18Stop assuming ODB backend includes wrapping routine; wrap in git2go insteadAidan Nulman
2013-12-18Merge pull request #41 from libgit2/cmn/threadingCarlos Martín Nieto
Lock the OS thread when acessing errors
2013-12-18Lock the OS thread when acessing errorsCarlos Martín Nieto
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-17add function to init repos w/custom odb backendsAidan Nulman
2013-11-18Merge pull request #47 from kron4eg/tree_builder_mem_leakVicent Martí
Fix memleak, TreeBuilder, Config and Parent commit
2013-11-14Fix memleak for Config and parent commit objectsArtiom Di
2013-11-14Fix memleak, free TreeBuilderArtiom Di