summaryrefslogtreecommitdiff
path: root/src/libgit2/diff_file.c
Commit message (Collapse)AuthorAgeFilesLines
* diff_file: don't mmap/readbuffer empty filesIliyas Jorio2023-02-131-0/+7
| | | | 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-131-2/+2
| | | | | The experimental function signature is only available when `GIT_EXPERIMENTAL_SHA256` is enabled.
* odb_hash*: accept the oid type to hash intoEdward Thomson2022-06-201-2/+3
| | | | | 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-0/+1
| | | | | `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-141-3/+3
| | | | | In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ` need to indicate that they're the size of _SHA1_ OIDs.
* refactor: `src` is now `src/libgit2`Edward Thomson2022-02-221-0/+481