summaryrefslogtreecommitdiff
path: root/tests-clar/object/tree
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-146-854/+0
|
* tree: allow retrieval of raw attributesCarlos Martín Nieto2013-10-081-1/+2
| | | | | | When a tool needs to recreate the tree object (for example an interface to another VCS), it needs to use the raw attributes, forgoing any normalization.
* Add tests for git_tree_walkRussell Belfer2013-09-131-0/+74
| | | | This tests the fixes for issues from #1849
* Add more treebuilder testsRussell Belfer2013-02-201-0/+97
| | | | | | The recent changes with git_treebuilder_entrycount point out that the test coverage for git_treebuilder_remove and git_treebuilder_entrycount is completely absent. This adds tests.
* tests: Fix unused temp repoVicent Marti2012-12-141-5/+0
|
* Clean up GCC build warningsBen Straub2012-12-101-2/+1
|
* tree: relax the filemode parserCarlos Martín Nieto2012-12-071-17/+22
| | | | | | | | | | | There are many different broken filemodes in the wild so we need to protect against them and give something useful up the chain. Don't fail when reading a tree from the ODB but normalize the mode as best we can. As 664 is no longer a mode that we consider to be valid and gets normalized to 644, we can stop accepting it in the treebuilder. The library won't expose it to the user, so any invalid modes are a bug.
* Fix warnings on Win64 buildRussell Belfer2012-11-271-1/+1
|
* API review / update for tree.hRussell Belfer2012-11-271-6/+6
|
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-231-0/+3
| | | | | | | | | | | | Without this change, any failed assertion in the second (or a later) test inside a test suite has a chance of double deleting memory, resulting in a heap corruption. See #1096 for details. This leaves alone the test cases where we "just" use cl_git_sandbox_init() and cl_git_sandbox_cleanup(). These methods already take good care to not double delete a repository. Fixes #1096
* Prevent creating `..`, `.`, and `.git` with tree builderScott J. Goldman2012-11-181-0/+6
| | | | As per core git.
* Fix compilation warningnulltoken2012-11-121-1/+1
|
* index: prevent tree creation from a non merged statenulltoken2012-11-091-0/+40
| | | | Fix libgit2/libgit2sharp#243
* tree: enforce coverage of silent entry replacementnulltoken2012-11-081-0/+117
|
* tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode()nulltoken2012-08-211-5/+5
|
* filemode: deploy enum usagenulltoken2012-08-212-35/+39
|
* treebuilder: enhance attributes handling on insertionnulltoken2012-08-191-0/+118
|
* tests: fix tree walking testCarlos Martín Nieto2012-08-141-1/+1
| | | | Return -1 to stop the iteration instead of not-0
* Add new iteration behavior to git_tree_walkRussell Belfer2012-08-031-0/+103
| | | | Missed this one, ironically enough.
* tree: unfound tree entry returns GIT_ENOTFOUNDnulltoken2012-07-121-6/+6
|
* Don't rmdir() nonexistent dirs in object::tree::frompath testsScott J. Goldman2012-06-291-1/+0
| | | | It causes the clar testsuite to abort on Windows, and isn't necessary.
* tree: Bring back `entry_bypath`Vicent Marti2012-06-291-45/+30
| | | | Smaller, simpler, faster.
* clar: Fix warningsVicent Marti2012-06-191-1/+6
|
* tree: Proper path comparison logicVicent Marti2012-06-191-0/+63
|
* misc: Fix warnings from PVS Studio trialVicent Martí2012-06-071-2/+2
|
* errors: Rename error codesbreaking-changesVicent Martí2012-05-181-2/+2
|
* errors: Rename the generic return codesVicent Martí2012-05-181-9/+9
|
* tree: Naming conventionsVicent Martí2012-05-161-1/+1
|
* tree: Kill the `git_tree_diff` functionsVicent Martí2012-05-161-168/+0
| | | | These are deprecated and replaced with the diffing code in git2/diff.h
* Remove old and unused error codesVicent Martí2012-05-021-1/+1
|
* Backport more test dataVicent Martí2012-05-021-1/+1
|
* Update test suiteVicent Martí2012-05-022-2/+2
|
* Merge branch 'new-error-handling' into developmentVicent Martí2012-05-022-12/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .travis.yml include/git2/diff.h src/config_file.c src/diff.c src/diff_output.c src/mwindow.c src/path.c tests-clar/clar_helpers.c tests-clar/object/tree/frompath.c tests/t00-core.c tests/t03-objwrite.c tests/t08-tag.c tests/t10-refs.c tests/t12-repo.c tests/t18-status.c tests/test_helpers.c tests/test_main.c
| * error handling: move the missing parts over to the new error handlingCarlos Martín Nieto2012-04-261-6/+12
| |
| * Convert attr, ignore, mwindow, status to new errorsRussell Belfer2012-03-161-2/+2
| | | | | | | | | | Also cleaned up some previously converted code that still had little things to polish.
| * error-handling: Add new routinesVicent Martí2012-03-031-1/+1
| | | | | | | | | | Obviously all the old throw routines are still in place, so we can gradually port over.
* | tests-clar/object: remove unused helper print_tree()schu2012-04-031-30/+0
| | | | | | | | Signed-off-by: schu <schu-github@schulog.org>
* | tests: Cleanup & fix test suiteVicent Martí2012-04-031-88/+0
| |
* | Simple readability fixes.Ben Straub2012-03-312-3/+9
| |
* | Discovered cl_git_strequal! Mounted a crusade!Ben Straub2012-03-312-2/+2
| |
* | Fixed linux build/test issues.Ben Straub2012-03-301-4/+70
| |
* | t09-tree.c ported.Ben Straub2012-03-302-0/+208
|/
* Rename the Clay test suite to ClarVicent Martí2012-01-242-0/+243
Clay is the name of a programming language on the makings, and we want to avoid confusions. Sorry for the huge diff!