summaryrefslogtreecommitdiff
path: root/src/libgit2/object.c
Commit message (Collapse)AuthorAgeFilesLines
* object: lookup sha256 objectsEdward Thomson2023-02-121-17/+28
| | | | | 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-131-2/+2
| | | | | The experimental function signature is only available when `GIT_EXPERIMENTAL_SHA256` is enabled.
* sha256: make sha256 an experimental optional featureEdward Thomson2022-06-201-1/+4
| | | | | | | | | | 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.
* odb_hash*: accept the oid type to hash intoEdward Thomson2022-06-201-2/+1
| | | | | The git_odb_hash helper functions should not assume SHA1, and instead should be given the oid type that they're producing.
* oid: give oids a typeEdward Thomson2022-06-201-4/+12
| | | | | `git_oid`s now have a type, and we require the oid type when creating the object id from creation functions.
* object: move oid header printing to objectEdward Thomson2022-06-141-0/+15
|
* object: move oid header parsing to objectEdward Thomson2022-06-141-0/+28
|
* oid: define GIT_OID_SHA1_ZEROEdward Thomson2022-06-141-2/+2
| | | | | 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-141-8/+8
| | | | | In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ` need to indicate that they're the size of _SHA1_ OIDs.
* object: validate that `odb_obj` was setEdward Thomson2022-02-271-0/+1
|
* refactor: `src` is now `src/libgit2`Edward Thomson2022-02-221-0/+601