summaryrefslogtreecommitdiff
path: root/src/libgit2/oid.c
Commit message (Collapse)AuthorAgeFilesLines
* sha256: indirection for experimental functionsEdward Thomson2022-07-131-2/+53
| | | | | The experimental function signature is only available when `GIT_EXPERIMENTAL_SHA256` is enabled.
* sha256: make sha256 an experimental optional featureEdward Thomson2022-06-201-13/+24
| | | | | | | | | | 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-25/+7
| | | | Tidy up `nfmt` / `pathfmt`.
* oid: give oids a typeEdward Thomson2022-06-201-31/+81
| | | | | `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-10/+0
|
* object: move oid header parsing to objectEdward Thomson2022-06-141-26/+0
|
* oid: `GIT_OID_*SZ` is now `GIT_OID_SHA1_*SIZE`Edward Thomson2022-06-141-18/+18
| | | | | In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ` need to indicate that they're the size of _SHA1_ OIDs.
* oid: introduce `git_oid_raw_cpy`Edward Thomson2022-04-101-2/+1
| | | | | | | | Now that oids are type-aware, they use their type to understand how many bytes to copy. Some callers may need to copy the raw bytes of the object id. This is equivalent to a memcpy that is a little more semantic.
* oid: introduce `git_oid_raw_ncmp`Edward Thomson2022-04-101-19/+1
|
* refactor: `src` is now `src/libgit2`Edward Thomson2022-02-221-0/+463