summaryrefslogtreecommitdiff
path: root/tests-clar/object/blob
Commit message (Collapse)AuthorAgeFilesLines
* Move crlf conversion into buf_textautocrlf-fixesRussell Belfer2013-03-251-0/+1
| | | | | | | | | | | | | | This adds crlf/lf conversion functions into buf_text with more efficient implementations that bypass the high level buffer functions. They attempt to minimize the number of reallocations done and they directly write the buffer data as needed if they know that there is enough memory allocated to memcpy data. Tests are added for these new functions. The crlf.c code is updated to use the new functions. Removed the include of buf_text.h from filter.h and just include it more narrowly in the places that need it.
* Consolidate text buffer functionsRussell Belfer2012-11-281-13/+19
| | | | | | | | | | | | | There are many scattered functions that look into the contents of buffers to do various text manipulations (such as escaping or unescaping data, calculating text stats, guessing if content is binary, etc). This groups all those functions together into a new file and converts the code to use that. This has two enhancements to existing functionality. The old text stats function is significantly rewritten and the BOM detection code was extended (although largely we can't deal with anything other than a UTF8 BOM).
* Fix warnings on Win64 buildRussell Belfer2012-11-271-2/+2
|
* More external API cleanupVicent Marti2012-11-272-3/+3
| | | | | | Conflicts: src/branch.c tests-clar/refs/branches/create.c
* Extensions to rmdir and mkdir utilitiesRussell Belfer2012-11-091-2/+2
| | | | | | | | | | | * Rework GIT_DIRREMOVAL values to GIT_RMDIR flags, allowing combinations of flags * Add GIT_RMDIR_EMPTY_PARENTS flag to remove parent dirs that are left empty after removal * Add GIT_MKDIR_VERIFY_DIR to give an error if item is a file, not a dir (previously an EEXISTS error was ignored, even for files) and enable this flag for git_futils_mkpath2file call * Improve accuracy of error messages from git_futils_mkdir
* Add complex checkout test and then fix checkoutRussell Belfer2012-10-091-2/+2
| | | | | | | | | | | | | | | | This started as a complex new test for checkout going through the "typechanges" test repository, but that revealed numerous issues with checkout, including: * complete failure with submodules * failure to create blobs with exec bits * problems when replacing a tree with a blob because the tree "example/" sorts after the blob "example" so the delete was being processed after the single file blob was created This fixes most of those problems and includes a number of other minor changes that made it easier to do that, including improving the TYPECHANGE support in diff/status, etc.
* portability: Improve x86/amd64 compatibilitynulltoken2012-07-241-1/+1
|
* blob: add git_blob_create_fromchunks()nulltoken2012-06-071-0/+87
|
* 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.
* Add filter tests and fix some bugsRussell Belfer2012-03-021-0/+125
This adds some initial unit tests for file filtering and fixes some simple bugs in filter application.