summaryrefslogtreecommitdiff
path: root/tests/libgit2/core
Commit message (Collapse)AuthorAgeFilesLines
* oid: use an oid array instead of shallowarrayEdward Thomson2023-05-091-0/+98
| | | | | | Users should provide us an array of object ids; we don't need a separate type. And especially, we should not be mutating user-providing values. Instead, use `git_oid *` in the shallow code.
* repo: don't allow repeated extensionsEdward Thomson2023-02-251-6/+23
| | | | | | If a user attempts to add a custom extension that the system already supports, or that is already in their list of custom extensions, de-dup it.
* Merge pull request #6330 from gitkraken-jacobw/partial-stashingEdward Thomson2023-02-161-0/+5
|\ | | | | stash: partial stash specific files
| * stash: test save options initJacob Watson2022-07-141-0/+5
| |
* | repo: understand the `objectformat` extensionEdward Thomson2023-02-121-6/+9
| | | | | | | | | | | | Teach the repository about the `objectformat` extension, supporting `sha1` always and `sha256` when the experimental sha256 support is active.
* | oid: provide type lookups by enum value or nameEdward Thomson2023-02-091-0/+19
| |
* | tests: skip sha256 tests when not compiled inEdward Thomson2022-09-191-3/+9
|/ | | | | Actually `cl_skip` the sha256 tests when we're not compiled for sha256, instead of passing them.
* sha256: indirection for experimental functionsEdward Thomson2022-07-132-7/+7
| | | | | The experimental function signature is only available when `GIT_EXPERIMENTAL_SHA256` is enabled.
* sha256: make sha256 an experimental optional featureEdward Thomson2022-06-203-12/+29
| | | | | | | | | | libgit2 can be built with optional, experimental sha256 support. This allows consumers to begin testing and providing feedback for our sha256 support while we continue to develop it, and allows us to make API breaking changes while we iterate on a final sha256 implementation. The results will be `git2-experimental.dll` and installed as `git2-experimental.h` to avoid confusion with a production libgit2.
* oid: add git_oid_fmt_substrEdward Thomson2022-06-201-0/+25
| | | | Tidy up `nfmt` / `pathfmt`.
* oid: add sha256 typed oidsEdward Thomson2022-06-201-49/+123
|
* oid: give oids a typeEdward Thomson2022-06-203-15/+16
| | | | | `git_oid`s now have a type, and we require the oid type when creating the object id from creation functions.
* oid: define GIT_OID_SHA1_ZEROEdward Thomson2022-06-141-6/+6
| | | | | Callers should not assume the layout of the oid structure; provide them a macro that defines the null / zero sha1 object id.
* oid: `GIT_OID_*SZ` is now `GIT_OID_SHA1_*SIZE`Edward Thomson2022-06-142-2/+2
| | | | | In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ` need to indicate that they're the size of _SHA1_ OIDs.
* refactor: move utility tests into utilEdward Thomson2022-02-2236-7442/+183
|
* refactor: `tests` is now `tests/libgit2`Edward Thomson2022-02-2243-0/+8378
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.