summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-03-20Add index WriteTreeTo + testJesse Ezell
2014-03-20return nil instead of empty array on errorJesse Ezell
2014-03-20add remote listJesse Ezell
2014-03-20remove channel based iteration for branch / ref. Add ReferenceNameIterator. ↵Jesse Ezell
All iterators use Next(). Remove interfaces.
2014-03-19various improvements to interfaceJesse Ezell
2014-03-20Remote: remove Get prefix from refspecsCarlos Martín Nieto
Idiomatic Go is to omit the Get from the getter methods.
2014-03-19split out name iteratorJesse Ezell
2014-03-19remove Branch struct, unify reference iteratorsJesse Ezell
2014-03-19Clean up after the testsCarlos Martín Nieto
2014-03-19Remote: don't mix allocatorsCarlos Martín Nieto
We cannot ask libgit2 to free the memory we have allocated ourselves, as it cannot know how to do it. Let's free the strarray ourselves.
2014-03-19Merge pull request #68 from libgit2/cmn/oid-revampCarlos Martín Nieto
Oid revamp
2014-03-19Oid: fix IsZero()Carlos Martín Nieto
We need to compare against the number zero, not its ASCII value.
2014-03-19Oid: use Go's conversion functionsCarlos Martín Nieto
Go already has all the necessary pieces for encoding and decoding hex strings. Using them let's us avoid going into C land. Benchmarks show this takes about half the time as using libgit2's functions.
2014-03-19Oid: remove Bytes()Carlos Martín Nieto
This is not needed. We can do id[:] to get a slice.
2014-03-19Oid: make NewOid take a stringCarlos Martín Nieto
This is the most common way of having an id that's not in Oid form, so let's make it the "default" and rename to NewOidFromBytes() the one that takes []byte.
2014-03-19Oid: make the type directly [20]byteCarlos Martín Nieto
There is no need for a struct with a single field. An Oid is 20 bytes which hold the binary representation of the hash, so let's use that directly. Go lets us have methods on this new type just the same.
2014-03-19Merge pull request #69 from jezell/clone_opts_init_fixCarlos Martín Nieto
Clone opts init fix
2014-03-18fix naming on testJesse Ezell
2014-03-18add simple clone testJesse Ezell
2014-03-18fix clone options initJesse Ezell
2014-03-18Merge pull request #61 from jezell/remotes-wipCarlos Martín Nieto
Cleaned up remotes / clone / add push / fetch
2014-03-17Merge pull request #67 from jezell/chunk-create-fixCarlos Martín Nieto
fix chunk create return values
2014-03-16fix chunk create logicJesse Ezell
2014-03-12add branch iterator / remove useless repo from reference iteratorJesse Ezell
2014-03-11remove strarray wrappersJesse Ezell
2014-03-11fix return for old go versions / travisJesse Ezell
2014-03-11clean up clone codeJesse Ezell
2014-03-11cleanup clone codeJesse Ezell
2014-03-11merge with latestJesse Ezell
2014-03-11Merge branch 'merge' of https://github.com/jezell/git2go into mergeJesse Ezell
2014-03-11remove useless wrappersJesse Ezell
2014-03-11Merge branch 'jezell/merge' into mergeJesse Ezell
2014-03-11merge with latestJesse Ezell
2014-03-11merge with latest, replace merge wrappers with go codeJesse Ezell
2014-03-11Merge pull request #65 from jezell/blob_and_tree_updatesCarlos Martín Nieto
Minor API enhancements
2014-03-11Merge branch 'cmn/checkout-opts'Carlos Martín Nieto
2014-03-11CheckoutIndex: allow for index to be nilCarlos Martín Nieto
Allow for the index to be nil and pass that to the library to use the repository's index.
2014-03-11Move checkout functions options more in line with the libraryCarlos Martín Nieto
Afjust Checkout -> CheckoutHead and pass nil if the options structure is nil so as not to overide the library's decisions.
2014-03-11Remove custom checkout opts init functionCarlos Martín Nieto
2014-03-11Adjust to checkout_opts -> checkout_optionsCarlos Martín Nieto
2014-03-11Merge pull request #58 from jezell/add-branch-lookupCarlos Martín Nieto
Add branch functions
2014-03-07add blob chunk creation, creation of tree builders for specific trees, minor ↵Jesse Ezell
API cleanup
2014-02-28Add defaults, add simple test, merge heads should be pointer arrayJesse Ezell
2014-02-28move finalizer above freeJesse Ezell
2014-02-28switch from iota to explicit defJesse Ezell
2014-02-28move return outside of switch for go 1.0 / travisJesse Ezell
2014-02-28fix handling of msg to treat empty str as nilJesse Ezell
2014-02-28fix msg handling to treat empty str as nilJesse Ezell
2014-02-28Remove unused constsJesse Ezell
2014-02-28fix bad git_buf handlingJesse Ezell