summaryrefslogtreecommitdiff
path: root/tests-clar/core/buffer.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings and merge issues on Win64Russell Belfer2012-08-231-1/+1
|
* Add git_buf_unescape and git__unescape to unescape all characters in a ↵yorah2012-07-241-0/+20
| | | | string (in-place)
* Fix memory leak in testRussell Belfer2012-07-121-1/+1
|
* Add a couple of useful git_buf utilitiesRussell Belfer2012-07-101-0/+47
| | | | | | | * `git_buf_rfind` (with tests and tests for `git_buf_rfind_next`) * `git_buf_puts_escaped` and `git_buf_puts_escaped_regex` (with tests) to copy strings into a buffer while injecting an escape sequence (e.g. '\') in front of particular characters.
* Ranged iterators and rewritten git_status_fileRussell Belfer2012-05-151-0/+50
| | | | | | | | | | | | | | | | | | | | | The goal of this work is to rewrite git_status_file to use the same underlying code as git_status_foreach. This is done in 3 phases: 1. Extend iterators to allow ranged iteration with start and end prefixes for the range of file names to be covered. 2. Improve diff so that when there is a pathspec and there is a common non-wildcard prefix of the pathspec, it will use ranged iterators to minimize excess iteration. 3. Rewrite git_status_file to call git_status_foreach_ext with a pathspec that covers just the one file being checked. Since ranged iterators underlie the status & diff implementation, this is actually fairly efficient. The workdir iterator does end up loading the contents of all the directories down to the single file, which should ideally be avoided, but it is pretty good.
* Update clar and remove old helpersRussell Belfer2012-04-171-60/+60
| | | | | | This updates to the latest clar which includes the helpers `cl_assert_equal_s` and `cl_assert_equal_i`. Convert the code over to use those and remove the old libgit2-only helpers.
* Convert reflog to new errorsRussell Belfer2012-03-201-0/+17
| | | | Cleaned up some other issues.
* buffer: Unify `git_fbuffer` and `git_buf`Vicent Martí2012-02-271-6/+6
| | | | | | | | | | | | | | This makes so much sense that I can't believe it hasn't been done before. Kill the old `git_fbuffer` and read files straight into `git_buf` objects. Also: In order to fully support 4GB files in 32-bit systems, the `git_buf` implementation has been changed from using `ssize_t` for storage and storing negative values on allocation failure, to using `size_t` and changing the buffer pointer to a magical pointer on allocation failure. Hopefully this won't break anything.
* Rename the Clay test suite to ClarVicent Martí2012-01-241-0/+546
Clay is the name of a programming language on the makings, and we want to avoid confusions. Sorry for the huge diff!