Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 643e7bb7bcea66b6fae77cc3f2f919da72fe940e @psyeugenic committed Dec 15, 2010
Showing with 775 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +9 −0 Makefile
  3. +29 −0 README.md
  4. +2 −0 c_src/.gitignore
  5. +511 −0 c_src/libgit_nif.c
  6. +42 −0 c_src/libgit_util.c
  7. +18 −0 c_src/libgit_util.h
  8. +1 −0 ebin/.gitignore
  9. +16 −0 ebin/libgit.app
  10. +1 −0 priv/.gitignore
  11. BIN rebar
  12. +13 −0 rebar.config
  13. +1 −0 src/.gitignore
  14. +130 −0 src/libgit.erl
@@ -0,0 +1,2 @@
+*.o
+*.beam
@@ -0,0 +1,9 @@
+REBAR=./rebar
+
+all: compile
+
+compile: $(REBAR)
+ @$(REBAR) compile
+
+clean: $(REBAR)
+ @$(REBAR) clean
@@ -0,0 +1,29 @@
+libgit2 erlang bindings
+=======================
+
+The title is an overstatement. It has some bindings to libgit2.
+
+
+Example of use:
+---------------
+ > R = libgit:repository(<<"otp/.git">>).
+ > C = libgit:commit_lookup(R, <<"0701070394cab463bf5ebbc69424e20778633a57">>).
+ > io:format("~p~n", [libgit:commit_to_term(C)]).
+ [{tree,{git_tree,<<>>}},
+ {author,[{time,1291201871},
+ {email,<<"psyeugenic@gmail.com">>},
+ {name,<<"Björn-Egil Dahlberg">>}]},
+ {committer,[{time,1291201871},
+ {email,<<"psyeugenic@gmail.com">>},
+ {name,<<"Björn-Egil Dahlberg">>}]},
+ {parents,[{git_commit,<<>>},{git_commit,<<>>}]},
+ {subject,<<"Merge branch 'egil/tools/eprof-badarith-timer-resolution/OTP-8963' into dev">>},
+ {message,<<"Merge branch 'egil/tools/eprof-badarith-timer-resolution/OTP-8963' into dev\n\n* egil/tools/eprof-badarith-timer-resolution/OTP-8963:\n eprof: fix badarith exception on divide\n">>}]
+
+ > [libgit:commit_id(Commit) || Commit <- libgit:revwalk(R, C)].
+ [<<"84adefa331c4159d432d22840663c38f155cd4c1">>,
+ <<"0ad86bc3d062508f78142f2cc1a4756fece24c10">>,
+ <<"5c2bac05f515211a6158bb06d91ea3b0b3861b84">>,
+ <<"7bd64232f9c919a233b35cdaff850098a0e64d82">>,
+ ...]
+
@@ -0,0 +1,2 @@
+Makefile
+*.o
Oops, something went wrong.

0 comments on commit 643e7bb

Please sign in to comment.