lhchavez
05bc5e36ff
Add support for indexers and alternate odb packfiles
...
This allows for implementations of git servers written in Go.
2020-02-23 09:13:47 -08:00
lhchavez
37f732a833
Fix the Cred interface
...
This change adds Cred.Free() and finalizers to prevent memory leaks. It
also makes the interface for Cred more idiomatic and return actual
errors intead of ints.
2020-02-23 08:24:06 -08:00
lhchavez
45097a857c
Merge pull request #429 from josharian/cherrypick-commit
...
cherrypick: wrap git_cherrypick_commit
2020-02-23 08:08:30 -08:00
lhchavez
c1903b47fe
Add test
2020-02-23 15:43:20 +00:00
lhchavez
3c88bd9f1a
Merge remote-tracking branch 'upstream/master' into cherrypick-commit
2020-02-23 15:08:45 +00:00
lhchavez
21d618136f
Merge pull request #423 from josharian/more-annotated-commit
...
merge: add two missing AnnotatedCommit methods
2020-02-23 07:05:25 -08:00
lhchavez
a140f2310f
Add test and runtime.KeepAlive()
2020-02-23 14:58:21 +00:00
lhchavez
627447092f
Merge remote-tracking branch 'upstream/master' into more-annotated-commit
2020-02-23 14:49:04 +00:00
lhchavez
06764f48dc
Merge pull request #400 from ramanenka/git_index_add_frombuffer
...
Add binding for `git_index_add_frombuffer`
2020-02-23 06:47:18 -08:00
lhchavez
00374b39aa
Update the method name
2020-02-23 14:38:10 +00:00
lhchavez
c20008416a
Merge remote-tracking branch 'upstream/master' into git_index_add_frombuffer
2020-02-23 13:53:17 +00:00
Richard Burke
4bca045e5a
Remove Version from RevertOptions
...
Version is defaulted to GIT_REVERT_OPTIONS_VERSION
2020-02-22 19:39:50 -08:00
Richard Burke
30c3d0ffe2
Add revert functionality
...
Closes #436
2020-02-22 19:39:50 -08:00
lhchavez
2bb5930733
Free() the copies of repository.LookupXxx()
...
`repository.LookupXxx()` allocate new go `Object`s that have a reference
to a `C.git_object`. Those are then duplicated with `git_object_dup()`,
so the original `Object`s linger unnecessarily until the Go GC kicks in.
This change explicitly calls `Free()` on the originals to avoid
unnecessary accumulation of garbage.
2020-02-22 19:21:44 -08:00
lhchavez
26edffd5f5
Update CI configuration
...
This change:
* Updates the GitHub actions so that they run different commands for the
dynamic and static flavors of libgit2.
* Updates the .travis.yml file so that it does roughly the same as the
GitHub actions.
* Adds the release-* branches to the CI configurations.
2020-02-22 18:21:38 -08:00
lhchavez
419bac9075
Uprev libgit2
...
This uprevs libgit2 to the latest and greatest. Notably,
* Fixes the interface of `git_mempack_reset`, since it now returns an
`int` instead of being `void`.
Fixes : #533
2020-02-20 19:01:59 -08:00
lhchavez
f21ecd9e74
Merge pull request #520 from libgit2/actions
...
Setup CI via Actions
2020-02-12 18:58:58 -08:00
lhchavez
22d400832b
Fix build for go 1.9
...
This change makes the #includes between credentials.go and remote.go
consistent to avoid a build error in go 1.9.
2020-02-13 02:52:50 +00:00
lhchavez
150a8c6016
Merge remote-tracking branch 'origin/master' into actions
2020-02-13 02:50:31 +00:00
lhchavez
b201c503ab
Update .github/workflows/ci.yml
2020-02-12 17:07:17 -08:00
lhchavez
75c5e41422
Merge pull request #527 from dbolkensteyn/master
...
Fixes #513 - Segfault during tree walk
2020-02-12 17:06:40 -08:00
lhchavez
11506ab070
Merge pull request #523 from josharian/diff-stringers
...
make Delta and DiffLineType stringers
2020-02-12 17:03:52 -08:00
lhchavez
917d8dcb9e
Merge pull request #524 from josharian/doc-params
...
provide param names in DiffForEachFileCallback
2020-02-12 17:00:02 -08:00
lhchavez
aa802a90db
Merge pull request #503 from jonEbird/static-build-script-cleanup
...
script/build-libgit2-static.sh: correctly set ROOT
2020-02-12 16:57:53 -08:00
Carlos Martín Nieto
e2d039017f
Merge pull request #515 from Nivl/patch-1
...
fix invalid guard forcing v27 instead of v28
2020-02-12 13:32:51 +01:00
Carlos Martín Nieto
ba1b5f0c23
Merge pull request #528 from libgit2/cmn/bump-libgit2
...
Bump libgit2 to 6777db8e83
2019-12-10 23:41:38 +01:00
Carlos Martín Nieto
c5159e624e
credentials: unconfuse Go about the type
...
For some reason cgo thinks the `credtype` field does not exist in `git_cred` so
let's put it into the C code.
2019-12-10 22:33:00 +00:00
Carlos Martín Nieto
ce19fa064f
travis: update versions of Go to be tested
2019-12-10 22:20:20 +00:00
Carlos Martín Nieto
97e6392d3a
Adjust to libgit2 changes
2019-12-10 22:15:32 +00:00
Carlos Martín Nieto
790b3d2ac0
Makefile: disable test caching
...
This does not work well when you're changing C stuff underneath.
2019-12-10 22:15:09 +00:00
Carlos Martín Nieto
93a1ee401f
Bump libgit2 to 6777db8e83
2019-12-10 21:28:24 +00:00
Dinesh Bolkensteyn
5c79683685
Similar to #513 Fix potential segfault on Tag objects
2019-11-17 17:41:43 +01:00
Dinesh Bolkensteyn
bf289c8b36
Fixes #513 - Segfault during tree walk
2019-11-17 17:21:57 +01:00
Josh Bleecher Snyder
79b2cb6ca1
provide param names in DiffForEachFileCallback
...
Without a parameter name, the float64 param is pretty inscrutable.
2019-08-27 10:23:37 -07:00
Josh Bleecher Snyder
3849c7f52a
make Delta and DiffLineType stringers
2019-08-27 10:02:12 -07:00
Carlos Martín Nieto
a5b3de11ae
submodule
2019-08-15 09:42:58 +02:00
Carlos Martín Nieto
26c983c3a2
Setup CI via Actions
2019-08-15 09:38:02 +02:00
Carlos Martín Nieto
37e5b53f74
Merge pull request #519 from libgit2/cmn/update-libgit2
...
Update vendored libgit2 to 08cfa43d0e1a921
2019-08-13 20:28:10 +02:00
Carlos Martín Nieto
57ab6bc351
script: tell libgit2 to use the builtin regex backend
2019-08-13 20:15:01 +02:00
Carlos Martín Nieto
b7eeb4f405
Update vendored libgit2 to 08cfa43d0e1a921
2019-08-13 19:30:16 +02:00
Melvin
5cdcbf1607
fix invalid guard forcing v27 instead of v28
2019-06-19 10:48:37 -07:00
Carlos Martín Nieto
b2e2b2f71b
Merge pull request #506 from takuji/git_commit_message_encoding
...
Add git_commit_message_encoding support
2019-06-18 11:39:25 +02:00
Carlos Martín Nieto
4fa9349942
Merge pull request #512 from codeocean/diff-to-buf
...
Add Diff.ToBuf wrapping git_diff_to_buf
2019-06-18 11:33:28 +02:00
Segev Finer
ad02c37e6d
Add Diff.ToBuf wrapping git_diff_to_buf
2019-05-29 18:00:16 +03:00
Takuji Shimokawa
fe0f562cc0
Add Commit.MessageEncoding() method.
2019-05-10 20:31:01 +09:00
Jon Miller
13090d85b4
script/build-libgit2-static.sh: correctly set ROOT
...
The ROOT variable is not being set correctly. Need to use dirname against
$0 as well as only go up one directory instead of two.
2019-05-07 11:36:34 -04:00
Carlos Martín Nieto
bf1e8a4338
Merge pull request #479 from lhchavez/uprev-libgit2
...
Uprev vendored libgit2 to v.0.28
2019-02-15 14:26:37 +01:00
lhchavez
5fda6dd901
Uprev vendored libgit2 to v0.28
...
New version is here!
2019-02-11 03:57:50 +00:00
Carlos Martín Nieto
2f91268f74
Merge pull request #448 from lhchavez/mempack
...
Add support for mempack
2019-01-15 20:46:54 +01:00
Carlos Martín Nieto
f4ea2a561d
Keep odb alive when adding mempack
2019-01-15 20:28:36 +01:00