252 Commits

Author SHA1 Message Date
1d969fab9d Fix warnings in mix.exs 2023-05-05 18:42:12 +06:00
10301b40c8 Fix compilation warnings and prepare to be a dependency. 2023-04-28 17:49:27 +06:00
Carlos Martín Nieto
9e9aa23af7 Fix some warnings from mix 2016-11-14 17:09:35 +01:00
Carlos Martín Nieto
1d30af24c4 Merge pull request #8 from mingshun/master
Fixed some small stuffs
2015-12-20 03:31:50 +01:00
Carlos Martín Nieto
f02bd79765 Merge pull request #7 from KazuCocoa/fix_undefined_function_error_in_geef_revwalk
Fix undefined function error
2015-10-17 15:21:51 +02:00
Kazuaki MATSUO
49896aa65b use Geef instead of using Geef.Repository 2015-10-17 00:49:23 +09:00
Kazuaki MATSUO
294f1b3536 dix undefined function error 2015-10-09 00:03:03 +09:00
mingshun
41b3dabcda Replace the deprecated erlang:now() with os:timestamp() in tests 2015-10-03 20:30:53 +08:00
mingshun
b2adb24079 Adopt Access behaviours to Geef.Object instead of implementing the deprecated Access protocol 2015-10-03 20:29:25 +08:00
mingshun
9621cc5b26 Correct the output path of NIF library for being used as a dependency of another project 2015-10-03 12:43:21 +08:00
mingshun
5c621231ae Correct a typo in docs of mix.exs 2015-10-03 12:08:29 +08:00
mingshun
2307f38df0 Replaced int64_t with ErlNifSInt64 in c_src/config.c to get rid of the warning at compilation 2015-10-03 09:48:03 +08:00
mingshun
90e90415f5 Replace the deprecated erlang:now() with os:timestamp() 2015-10-03 08:53:51 +08:00
Carlos Martín Nieto
28e890ca95 Adjust to libgit2 v0.23 2015-09-20 20:16:16 +02:00
Carlos Martín Nieto
b3eaaa2df0 Merge branch 'ramonsnir' 2015-07-31 21:50:22 +02:00
Ramon Snir
79f89bcd41 add Geef.Revwalk module for Elixir 2015-07-31 21:49:52 +02:00
Ramon Snir
01254f2f90 add Geef.Config module for Elixir 2015-07-31 21:49:52 +02:00
Ramon Snir
8c39463095 fix Geef.Tree enumerable 2015-07-31 21:49:52 +02:00
Ramon Snir
1e48686aca fix Geef.Object.lookup 2015-07-31 21:49:52 +02:00
Ramon Snir
b2af788af0 some fixes from dialyzer output 2015-07-31 21:49:51 +02:00
Ramon Snir
f943274ad8 bug fix to commit create (when parents are given) 2015-07-31 21:49:51 +02:00
Ramon Snir
6c73d9e29e fix Geef.Signature for Elixir use 2015-07-11 07:50:25 +03:00
Ramon Snir
fa24599e82 Running mix should be sufficient, as an Elixir dependency 2015-07-11 07:50:25 +03:00
Carlos Martín Nieto
f75d7bbe63 Merge branch 'update-22' 2015-04-24 15:39:30 +02:00
Carlos Martín Nieto
4b889ed3bb Fix looking up a commit's tree
We were generating the term from the wrong object, meaning the system
was not keeping the object we should be. We were also not setting the
repository or increasing its refcount, meaning bad news when it came
time to GC the object.
2015-04-24 15:38:00 +02:00
Ramon Snir
906b58a2c8 Update to support libgit2 0.22 2015-04-24 15:33:36 +02:00
Carlos Martín Nieto
ad9acd2356 Allow retrieval of a commit message 2014-12-29 10:11:39 +00:00
Carlos Martín Nieto
e8b3b19d0d Use struct notation in the README example 2014-09-17 05:05:36 +02:00
Carlos Martín Nieto
3a48fb191e Fix reference resolving 2014-09-17 05:02:06 +02:00
Carlos Martín Nieto
5362e0c4b6 Get rid of some warnings 2014-09-17 04:41:20 +02:00
Carlos Martín Nieto
ccc0cc1f80 Add some tests for Index
Including making the default :undefined, so the NIF doesn't get
upset. Implementing the Access protocol would require a struct, so we
may or may not want that.
2014-08-03 15:03:03 +02:00
Carlos Martín Nieto
fffdb47032 Make Reference call the NIF itself 2014-08-03 02:10:42 +02:00
Carlos Martín Nieto
808646a5ca Work towards elixir 14
While here, make the object be an elixir struct instead of delegating to
the erlang code.

As part of this, geef_nif:commit_tree() has been fixed to return the id,
insted of the type, as we know it's going to be a tree, but not then id.
2014-08-03 01:03:17 +02:00
Carlos Martín Nieto
3cafc28a35 Merge branch 'config' 2014-05-19 17:08:08 +02:00
Carlos Martín Nieto
8ade44a868 config: string get/set 2014-05-19 13:11:55 +02:00
Carlos Martín Nieto
4b0379f3ee config: expose get_bool/2 2014-05-19 12:55:12 +02:00
Carlos Martín Nieto
d6ad01836f config: another failing test 2014-05-19 12:50:53 +02:00
Carlos Martín Nieto
f568955a95 config: test for setting and getting bool 2014-05-19 12:40:55 +02:00
Carlos Martín Nieto
29d468c90a Add missing files 2014-05-19 12:15:14 +02:00
Carlos Martín Nieto
98b176c925 Add a minimum of config
This lets us revive the reflog test by letting us set
core.logallrefupdates to true.
2014-05-18 12:03:53 +02:00
Carlos Martín Nieto
688c052f6d Temporarily remove a test
libgit2 recently started caring about the reflog rules and as we use a
bare repo for testing, it does not append.
2014-05-18 11:19:15 +02:00
Carlos Martín Nieto
ee41214322 Merge pull request #2 from KlausTrainer/master
Fix compilation errors with Elixir 0.13.0
2014-04-22 16:37:14 +02:00
Klaus Trainer
2b4e2eec01 Fix compilation errors with Elixir 0.13.0 2014-04-22 15:50:25 +02:00
Carlos Martín Nieto
fcec57c84f Fix alloc_binary param order 2014-02-15 19:28:49 +01:00
Carlos Martín Nieto
fe4c72a811 Expose utility ref-type functions
These allow you to determine whether you're dealing with a branch, tag,
note or remote-tracking branch.
2014-02-15 01:38:33 +01:00
Carlos Martín Nieto
1a79093274 Get rid of a few dialyzer warnings 2014-02-14 00:51:06 +01:00
Carlos Martín Nieto
378c04284a Remove left-over debugging code 2014-02-14 00:07:43 +01:00
Carlos Martín Nieto
7b951fec74 Merge branch 'reflog' 2014-02-13 23:32:42 +01:00
Carlos Martín Nieto
73af429633 Add geef_reflog:delete() 2014-02-13 18:26:33 +01:00
Carlos Martín Nieto
5520efb72a Correct the signature output from the reflog
The function to convert signatures into erlang terms was returning ok
with the rest of the tuple which geef_sig expects. We do not want the
ok there, so let that function give us the four terms and decide what to
do in each case.

The signature functions still want to return with ok before it, but the
reflog wants them together with the other parameters.
2014-02-13 18:21:45 +01:00