summaryrefslogtreecommitdiff
path: root/tests-clar/object
Commit message (Collapse)AuthorAgeFilesLines
* Make git_object_peel a bit smarterRussell Belfer2012-08-271-3/+13
| | | | | | | | | | | This expands the types of peeling that `git_object_peel` knows how to do to include TAG -> BLOB peeling, and makes the errors slightly more consistent depending on the situation. It also adds a new special behavior where peeling to ANY will peel until the object type changes (e.g. chases TAGs to a non-TAG). Using this expanded peeling, this replaces peeling code that was embedded in `git_tag_peel` and `git_reset`.
* 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
* Make git_message_prettify return bytes writtenRussell Belfer2012-08-141-15/+20
| | | | | | | | | If you want to be absolutely safe with git_message_prettify, you can now pass a NULL pointer for the buffer and get back the number of bytes that would be copied into the buffer. This means that an error is a non-negative return code and a success will be greater than zero from this function.
* Check prettify message output buffer after cleanupRussell Belfer2012-08-121-0/+60
| | | | This makes the message prettify buffer length check accurate.
* Merge remote-tracking branch 'arrbee/tree-walk-fixes' into developmentVicent Marti2012-08-061-0/+103
|\ | | | | | | | | | | | | | | | | Conflicts: src/notes.c src/transports/git.c src/transports/http.c src/transports/local.c tests-clar/odb/foreach.c
| * Add new iteration behavior to git_tree_walkRussell Belfer2012-08-031-0/+103
| | | | | | | | Missed this one, ironically enough.
* | portability: Improve x86/amd64 compatibilitynulltoken2012-07-241-1/+1
|/
* object: introduce git_object_peel()nulltoken2012-07-171-0/+79
| | | | Partially fix #530
* 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.
* message: Expose git_message_prettify()nulltoken2012-06-192-3/+7
| | | | | | | | | | git_commit() and git_tag() no longer prettify the message by default. This has to be taken care of by the caller. This has the nice side effect of putting the caller in position to actually choose to strip the comments or not.
* clar: Fix warningsVicent Marti2012-06-191-1/+6
|
* tree: Proper path comparison logicVicent Marti2012-06-191-0/+63
|
* Fix broken tests caused by no longer prettifying by defaultTim Clem2012-06-151-1/+1
|
* misc: Fix warnings from PVS Studio trialVicent Martí2012-06-071-2/+2
|
* blob: add git_blob_create_fromchunks()nulltoken2012-06-071-0/+87
|
* errors: Rename error codesVicent Martí2012-05-182-6/+6
|
* errors: Rename the generic return codesVicent Martí2012-05-183-15/+15
|
* 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
* tests: make sure we clean up in objects/blob/write.cCarlos Martín Nieto2012-05-131-4/+5
|
* blob: Add git_blob_create_fromdisk()nulltoken2012-05-131-0/+68
| | | | This function will create blobs in the object database from files anywhere on the filesystem. This can be run against bare and non-bare repositories.
* object: make git_object_lookup() return GIT_ENOTFOUND when searching for an ↵nulltoken2012-05-111-0/+26
| | | | | | | | | existing object by specifying an incorrect type This fix complements cb0ce16bbe8efe2098ef9cfffcf158301b036565 and cover the following additional use cases - retrieving an object which has been previously searched, found and cached - retrieving an object through an non ambiguous abbreviated id
* Merge pull request #670 from nulltoken/ntk/topic/clean-commit_messageVicent Martí2012-05-082-1/+172
|\ | | | | Clean commit and tag messages
| * commit/tag: ensure the message is cleaned upnulltoken2012-05-072-1/+172
| | | | | | | | | | | | 'git commit' and 'git tag -a' enforce some conventions, like cleaning up excess whitespace and making sure that the last line ends with a '\n'. This fix replicates this behavior. Fix libgit2/libgit2sharp#117
* | Clean up warnings and testsRussell Belfer2012-05-081-4/+6
| |
* | object: make git_object_lookup() return GIT_ENOTFOUND when searching for an ↵nulltoken2012-05-081-0/+35
|/ | | | existing object by specifying an incorrect type
* Merge remote-tracking branch 'scottjg/fix-mingw32' into developmentVicent Martí2012-05-051-0/+8
|\ | | | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/transports/http.c tests-clar/clar
| * Fix unsigned/signed comparison on Windows in commitstagedfile.cScott J. Goldman2012-05-051-0/+8
| |
* | Remove old and unused error codesVicent Martí2012-05-021-1/+1
| |
* | BoomVicent Martí2012-05-021-2/+2
| |
* | Backport more test dataVicent Martí2012-05-021-1/+1
| |
* | Update test suiteVicent Martí2012-05-027-25/+25
| |
* | Merge branch 'new-error-handling' into developmentVicent Martí2012-05-023-12/+71
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| |
| * tag: Add git_tag_peel() which recursively peel a tag until a non tag ↵nulltoken2012-04-101-0/+56
| | | | | | | | git_object is met
| * 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-032-152/+4
| |
* | Simple readability fixes.Ben Straub2012-03-314-5/+16
| |
* | Discovered cl_git_strequal! Mounted a crusade!Ben Straub2012-03-317-25/+25
| |
* | Moved more assertions inside Clar test helpers.Ben Straub2012-03-314-84/+56
| |
* | Fixed linux build/test issues.Ben Straub2012-03-301-4/+70
| |
* | Moved tag tests to object suite.Ben Straub2012-03-302-0/+379
| |
* | t09-tree.c ported.Ben Straub2012-03-302-0/+208
| |