summaryrefslogtreecommitdiff
path: root/tests-clar/object/blob
Commit message (Collapse)AuthorAgeFilesLines
* Port tests from PR 1683Russell Belfer2013-09-171-41/+49
| | | | | | This ports over some of the tests from https://github.com/libgit2/libgit2/pull/1683 by @yorah and @ethomson
* Merge git_buf and git_bufferRussell Belfer2013-09-171-2/+2
| | | | | | | | | | | This makes the git_buf struct that was used internally into an externally available structure and eliminates the git_buffer. As part of that, some of the special cases that arose with the externally used git_buffer were blended into the git_buf, such as being careful about git_buf objects that may have a NULL ptr and allowing for bufs with a valid ptr and size but zero asize as a way of referring to externally owned data.
* Add ident filterRussell Belfer2013-09-171-2/+2
| | | | | | | This adds the ident filter (that knows how to replace $Id$) and tweaks the filter APIs and code so that git_filter_source objects actually have the updated OID of the object being filtered when it is a known value.
* Extend public filter api with filter listsRussell Belfer2013-09-171-7/+7
| | | | | | | | | | | This moves the git_filter_list into the public API so that users can create, apply, and dispose of filter lists. This allows more granular application of filters to user data outside of libgit2 internals. This also converts all the internal usage of filters to the public APIs along with a few small tweaks to make it easier to use the public git_buffer stuff alongside the internal git_buf.
* Create public filter object and use itRussell Belfer2013-09-171-6/+6
| | | | | | | This creates include/sys/filter.h with a basic definition of a git_filter and then converts the internal code to use it. There are related internal objects (git_filter_list) that we will want to publish at some point, but this is a first step.
* odb: Prevent stream_finalize_write() from overwritingnulltoken2013-09-061-0/+28
| | | | | | Now that #1785 is merged, git_odb_stream_finalize_write() calculates the object id before invoking the odb backend. This commit gives a chance to the backend to check if it already knows this object.
* blob: Slightly enforce a create_fromchunks() testnulltoken2013-09-061-1/+5
|
* Fixcrazymaster2013-07-151-2/+2
|
* Fix typocrazymaster2013-07-151-2/+2
|
* Revert "Replace Japanese characters with the encoded hexadecimal values"crazymaster2013-07-151-2/+2
| | | | This reverts commit a91e4d6b21e141c2abc76b65b2d4c91d5d3e03cc.
* Replace Japanese characters with the encoded hexadecimal valuescrazymaster2013-07-151-2/+2
|
* Add test for multi-byte characterscrazymaster2013-07-141-2/+5
|
* 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.