summaryrefslogtreecommitdiff
path: root/tests/libgit2/diff
Commit message (Collapse)AuthorAgeFilesLines
* diff: parse patches with sha256Edward Thomson2023-04-105-22/+45
|
* index: add sha256 supportEdward Thomson2023-04-101-1/+2
|
* diff_file: don't mmap/readbuffer empty filesIliyas Jorio2023-02-131-0/+36
| | | | This prevents GIT_MMAP_VALIDATE from failing. This also prevents git_diff_file_content__unload from attempting to free git_str__initstr.
* sha256: indirection for experimental functionsEdward Thomson2022-07-139-40/+40
| | | | | The experimental function signature is only available when `GIT_EXPERIMENTAL_SHA256` is enabled.
* oid: give oids a typeEdward Thomson2022-06-209-40/+40
| | | | | `git_oid`s now have a type, and we require the oid type when creating the object id from creation functions.
* oid: `GIT_OID_*SZ` is now `GIT_OID_SHA1_*SIZE`Edward Thomson2022-06-142-9/+9
| | | | | In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ` need to indicate that they're the size of _SHA1_ OIDs.
* Merge pull request #6244 from jorio/fix-diff_delta_format_path-crashEdward Thomson2022-04-101-0/+26
|\ | | | | Fix crash when regenerating a patch with unquoted spaces in filename
| * test: add test that regenerates patches with spaces in filenameIliyas Jorio2022-03-131-0/+26
| | | | | | This currently crashes, proposed fix in subsequent commit.
* | tests: support flaky statEdward Thomson2022-04-061-7/+5
| | | | | | | | | | The 32-bit ARM QEMU builds are flaky when running `lstat`. Disable those testing `lstat`'s `st_size` temporarily.
* | diff: don't stat empty file on arm32 (flaky test)Edward Thomson2022-04-041-4/+8
|/ | | | | | | Our CI test infrastructure virtualizes arm32 in docker, which is a sometimes imperfect situation. In `diff::workdir::can_diff_empty_file`, avoid the stat to ensure that the file is zero bytes; there is an odd issue running in qemu when emulating arm32 that we should skip.
* refactor: move utility tests into utilEdward Thomson2022-02-221-0/+25
|
* refactor: `tests` is now `tests/libgit2`Edward Thomson2022-02-2220-0/+11185
Like we want to separate libgit2 and utility source code, we want to separate libgit2 and utility tests. Start by moving all the tests into libgit2.