Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simple benchmarking, todo list

  • Loading branch information...
commit d8095507d62716c652fed2e89c5d02f7ce940488 1 parent 9d44cb7
@schacon authored
Showing with 48 additions and 0 deletions.
  1. +30 −0 TODO.txt
  2. +9 −0 t/000-benchmarks.t
  3. +9 −0 t/008-ls-tree.t
View
30 TODO.txt
@@ -0,0 +1,30 @@
+TODO v1
+============
+
+* get references
+* rev-parse
+
+* parse tree objects
+* parse tag objects
+
+* write commit, tree, tag, blob objects
+* write/update references
+
+TODO v2
+============
+
+* diff
+* merge-base calculation
+* simple merges
+
+* read index file (ls-files)
+* write index entries (read-tree)
+
+* revlist caching
+* incremental log
+
+* git/http fetch
+* git/http/ssh push
+
+* git/http serve
+
View
9 t/000-benchmarks.t
@@ -0,0 +1,9 @@
+#!/usr/bin/env escript
+%% -*- erlang -*-
+%%! -pa ./ebin -sasl -boot start_sasl -noshell
+
+main(_) ->
+ Git = git:open("test_git"),
+ {Time, Value} = timer:tc(git, object_data, [Git, "be62addb149d286893e2ec254e0dc783a871e8af"]),
+ io:fwrite("Data: ~p:~p~n", [Time, Value]).
+
View
9 t/008-ls-tree.t
@@ -0,0 +1,9 @@
+#!/usr/bin/env escript
+%% -*- erlang -*-
+%%! -pa ./ebin -sasl -boot start_sasl -noshell
+
+main(_) ->
+ Git = git:open("test_git"),
+ {ok, Tree} = git:object(Git, "c67da89afe12df86e7b8324f1ac5fa470de2bb48"),
+ git_io:print_tree(Tree).
+
Please sign in to comment.
Something went wrong with that request. Please try again.