Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make git_object_peel a bit smarter | Russell Belfer | 2012-08-27 | 1 | -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() | nulltoken | 2012-08-21 | 1 | -5/+5 |
| | |||||
* | filemode: deploy enum usage | nulltoken | 2012-08-21 | 2 | -35/+39 |
| | |||||
* | treebuilder: enhance attributes handling on insertion | nulltoken | 2012-08-19 | 1 | -0/+118 |
| | |||||
* | tests: fix tree walking test | Carlos Martín Nieto | 2012-08-14 | 1 | -1/+1 |
| | | | | Return -1 to stop the iteration instead of not-0 | ||||
* | Make git_message_prettify return bytes written | Russell Belfer | 2012-08-14 | 1 | -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 cleanup | Russell Belfer | 2012-08-12 | 1 | -0/+60 |
| | | | | This makes the message prettify buffer length check accurate. | ||||
* | Merge remote-tracking branch 'arrbee/tree-walk-fixes' into development | Vicent Marti | 2012-08-06 | 1 | -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_walk | Russell Belfer | 2012-08-03 | 1 | -0/+103 |
| | | | | | | | | Missed this one, ironically enough. | ||||
* | | portability: Improve x86/amd64 compatibility | nulltoken | 2012-07-24 | 1 | -1/+1 |
|/ | |||||
* | object: introduce git_object_peel() | nulltoken | 2012-07-17 | 1 | -0/+79 |
| | | | | Partially fix #530 | ||||
* | tree: unfound tree entry returns GIT_ENOTFOUND | nulltoken | 2012-07-12 | 1 | -6/+6 |
| | |||||
* | Don't rmdir() nonexistent dirs in object::tree::frompath tests | Scott J. Goldman | 2012-06-29 | 1 | -1/+0 |
| | | | | It causes the clar testsuite to abort on Windows, and isn't necessary. | ||||
* | tree: Bring back `entry_bypath` | Vicent Marti | 2012-06-29 | 1 | -45/+30 |
| | | | | Smaller, simpler, faster. | ||||
* | message: Expose git_message_prettify() | nulltoken | 2012-06-19 | 2 | -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 warnings | Vicent Marti | 2012-06-19 | 1 | -1/+6 |
| | |||||
* | tree: Proper path comparison logic | Vicent Marti | 2012-06-19 | 1 | -0/+63 |
| | |||||
* | Fix broken tests caused by no longer prettifying by default | Tim Clem | 2012-06-15 | 1 | -1/+1 |
| | |||||
* | misc: Fix warnings from PVS Studio trial | Vicent Martí | 2012-06-07 | 1 | -2/+2 |
| | |||||
* | blob: add git_blob_create_fromchunks() | nulltoken | 2012-06-07 | 1 | -0/+87 |
| | |||||
* | errors: Rename error codes | Vicent Martí | 2012-05-18 | 2 | -6/+6 |
| | |||||
* | errors: Rename the generic return codes | Vicent Martí | 2012-05-18 | 3 | -15/+15 |
| | |||||
* | tree: Naming conventions | Vicent Martí | 2012-05-16 | 1 | -1/+1 |
| | |||||
* | tree: Kill the `git_tree_diff` functions | Vicent Martí | 2012-05-16 | 1 | -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.c | Carlos Martín Nieto | 2012-05-13 | 1 | -4/+5 |
| | |||||
* | blob: Add git_blob_create_fromdisk() | nulltoken | 2012-05-13 | 1 | -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 ↵ | nulltoken | 2012-05-11 | 1 | -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_message | Vicent Martí | 2012-05-08 | 2 | -1/+172 |
|\ | | | | | Clean commit and tag messages | ||||
| * | commit/tag: ensure the message is cleaned up | nulltoken | 2012-05-07 | 2 | -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 tests | Russell Belfer | 2012-05-08 | 1 | -4/+6 |
| | | |||||
* | | object: make git_object_lookup() return GIT_ENOTFOUND when searching for an ↵ | nulltoken | 2012-05-08 | 1 | -0/+35 |
|/ | | | | existing object by specifying an incorrect type | ||||
* | Merge remote-tracking branch 'scottjg/fix-mingw32' into development | Vicent Martí | 2012-05-05 | 1 | -0/+8 |
|\ | | | | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/transports/http.c tests-clar/clar | ||||
| * | Fix unsigned/signed comparison on Windows in commitstagedfile.c | Scott J. Goldman | 2012-05-05 | 1 | -0/+8 |
| | | |||||
* | | Remove old and unused error codes | Vicent Martí | 2012-05-02 | 1 | -1/+1 |
| | | |||||
* | | Boom | Vicent Martí | 2012-05-02 | 1 | -2/+2 |
| | | |||||
* | | Backport more test data | Vicent Martí | 2012-05-02 | 1 | -1/+1 |
| | | |||||
* | | Update test suite | Vicent Martí | 2012-05-02 | 7 | -25/+25 |
| | | |||||
* | | Merge branch 'new-error-handling' into development | Vicent Martí | 2012-05-02 | 3 | -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 handling | Carlos Martín Nieto | 2012-04-26 | 1 | -6/+12 |
| | | |||||
| * | tag: Add git_tag_peel() which recursively peel a tag until a non tag ↵ | nulltoken | 2012-04-10 | 1 | -0/+56 |
| | | | | | | | | git_object is met | ||||
| * | Convert attr, ignore, mwindow, status to new errors | Russell Belfer | 2012-03-16 | 1 | -2/+2 |
| | | | | | | | | | | Also cleaned up some previously converted code that still had little things to polish. | ||||
| * | error-handling: Add new routines | Vicent Martí | 2012-03-03 | 1 | -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() | schu | 2012-04-03 | 1 | -30/+0 |
| | | | | | | | | Signed-off-by: schu <schu-github@schulog.org> | ||||
* | | tests: Cleanup & fix test suite | Vicent Martí | 2012-04-03 | 2 | -152/+4 |
| | | |||||
* | | Simple readability fixes. | Ben Straub | 2012-03-31 | 4 | -5/+16 |
| | | |||||
* | | Discovered cl_git_strequal! Mounted a crusade! | Ben Straub | 2012-03-31 | 7 | -25/+25 |
| | | |||||
* | | Moved more assertions inside Clar test helpers. | Ben Straub | 2012-03-31 | 4 | -84/+56 |
| | | |||||
* | | Fixed linux build/test issues. | Ben Straub | 2012-03-30 | 1 | -4/+70 |
| | | |||||
* | | Moved tag tests to object suite. | Ben Straub | 2012-03-30 | 2 | -0/+379 |
| | | |||||
* | | t09-tree.c ported. | Ben Straub | 2012-03-30 | 2 | -0/+208 |
| | |