Implement Blob, Tree and Lazy, add tests for Tree.
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Sun, 20 Jul 2008 00:06:49 +0000 (20:06 -0400)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Sun, 20 Jul 2008 00:06:49 +0000 (20:06 -0400)
commitd7675d38d648e3f67a377214569f15e2c997b513
tree5834dee6c13fb1401b44fb0c7d7affa6b72cf838
parenta409adfaaf218a70d42492f33e1bc17459d157a6
Implement Blob, Tree and Lazy, add tests for Tree.

Lots of changes this commit. More in-depth:
* Added text fixtures from Git Python
* Add Git->getDir
* Add Git::$executeKwords (doesn't do anything yet, we need to merge upstream
  changes)
* Implemented Git_Tree expansion in Git_Commit
* Make Git_Repo properties public, as they are not lazy-loaded
* Implement Git_Repo->tree()
* Implement GitHarness, for easy access to fixtures
* Setup Mocks

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
36 files changed:
.gitattributes [new file with mode: 0644]
library/Git.php
library/Git/Blob.php [new file with mode: 0644]
library/Git/Commit.php
library/Git/Lazy.php [new file with mode: 0644]
library/Git/Repo.php
library/Git/Tree.php [new file with mode: 0644]
tests/Git/TreeTest.php [new file with mode: 0644]
tests/GitHarness.php [new file with mode: 0644]
tests/fixtures/blame [new file with mode: 0644]
tests/fixtures/cat_file_blob [new file with mode: 0644]
tests/fixtures/cat_file_blob_size [new file with mode: 0644]
tests/fixtures/diff_2 [new file with mode: 0644]
tests/fixtures/diff_2f [new file with mode: 0644]
tests/fixtures/diff_f [new file with mode: 0644]
tests/fixtures/diff_i [new file with mode: 0644]
tests/fixtures/diff_mode_only [new file with mode: 0644]
tests/fixtures/diff_new_mode [new file with mode: 0644]
tests/fixtures/diff_numstat [new file with mode: 0644]
tests/fixtures/diff_p [new file with mode: 0644]
tests/fixtures/for_each_ref [new file with mode: 0644]
tests/fixtures/for_each_ref_tags [new file with mode: 0644]
tests/fixtures/ls_tree_a [new file with mode: 0644]
tests/fixtures/ls_tree_b [new file with mode: 0644]
tests/fixtures/ls_tree_commit [new file with mode: 0644]
tests/fixtures/rev_list [new file with mode: 0644]
tests/fixtures/rev_list_commit_diffs [new file with mode: 0644]
tests/fixtures/rev_list_commit_idabbrev [new file with mode: 0644]
tests/fixtures/rev_list_commit_stats [new file with mode: 0644]
tests/fixtures/rev_list_count [new file with mode: 0644]
tests/fixtures/rev_list_delta_a [new file with mode: 0644]
tests/fixtures/rev_list_delta_b [new file with mode: 0644]
tests/fixtures/rev_list_single [new file with mode: 0644]
tests/fixtures/rev_parse [new file with mode: 0644]
tests/fixtures/show_empty_commit [new file with mode: 0644]
tests/index.php