summaryrefslogtreecommitdiff
path: root/tests/libgit2/object
Commit message (Collapse)AuthorAgeFilesLines
* object: lookup sha256 objectsEdward Thomson2023-02-125-56/+557
| | | | | This is much of the plumbing for the object database to support SHA256, and for objects to be able to parse SHA256 versions of themselves.
* sha256: indirection for experimental functionsEdward Thomson2022-07-1326-140/+140
| | | | | The experimental function signature is only available when `GIT_EXPERIMENTAL_SHA256` is enabled.
* Merge pull request #6191 from libgit2/ethomson/sha256_pocEdward Thomson2022-07-1327-195/+202
|\ | | | | RFC: SHA256 proof of concept
| * odb: add git_odb_optionsEdward Thomson2022-06-201-1/+1
| | | | | | | | | | Users will need to be able to specify the object id type for the given object database; add a new `git_odb_options` with that option.
| * odb_hash*: accept the oid type to hash intoEdward Thomson2022-06-201-2/+2
| | | | | | | | | | The git_odb_hash helper functions should not assume SHA1, and instead should be given the oid type that they're producing.
| * oid: add sha256 typed oidsEdward Thomson2022-06-201-1/+1
| |
| * oid: give oids a typeEdward Thomson2022-06-2026-142/+149
| | | | | | | | | | `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-142-17/+17
| | | | | | | | | | 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-144-33/+33
| | | | | | | | | | In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ` need to indicate that they're the size of _SHA1_ OIDs.
* | Merge branch 'main' into fix-invalid-branch-nameyuangli2022-07-121-0/+19
|/
* tests: don't cast raw data to a `git_oid``Edward Thomson2022-04-102-4/+12
| | | | Create an object id from raw data instead of casting.
* tree: move git_oid into tree entryEdward Thomson2022-04-101-1/+1
| | | | | | | | | | | | A tree entry previously pointed directly into the object id within the tree object itself; this is useful to avoid any unnecessary memory copy (and an unnecessary use of 40 bytes per tree entry) but difficult if we change the underlying `git_oid` object to not simply be a raw object id but have additional structure. This commit moves the `git_oid` directly into the tree entry; this simplifies the tree entry creation from user data. We now copy the `git_oid` into place when parsing.
* refactor: `tests` is now `tests/libgit2`Edward Thomson2022-02-2235-0/+5580
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.