Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | pack: support SHA256 in packfilesethomson/sha256_pack | Edward Thomson | 2022-07-11 | 18 | -129/+348 |
| | |||||
* | pack: don't pretend we support pack files v3 | Edward Thomson | 2022-07-08 | 2 | -3/+3 |
| | | | | | | | Pack files v3 are introduced in the SHA256 hash transition document https://github.com/git/git/blob/master/Documentation/technical/hash-function-transition.txt Obviously we do not support these yet. Stop pretending that we do. | ||||
* | packfile: checkpoint | Edward Thomson | 2022-07-08 | 7 | -37/+57 |
| | |||||
* | ci: run sha256 builds in ci | Edward Thomson | 2022-07-07 | 1 | -40/+72 |
| | |||||
* | sha256: make sha256 an experimental optional feature | Edward Thomson | 2022-07-07 | 22 | -55/+271 |
| | | | | | | | | | | 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. | ||||
* | meta: generated `features.h` is now `git2_features.h` | Edward Thomson | 2022-07-07 | 6 | -11/+7 |
| | | | | | Linux has a /usr/include/features.h, which gets confusing; update this to `git2_features.h` and move it into the `util` directory. | ||||
* | odb_loose: SHA256 support for loose object storage | Edward Thomson | 2022-07-07 | 5 | -70/+515 |
| | | | | Teach the loose object database how to cope with SHA256 objects. | ||||
* | oid: add git_oid_fmt_substr | Edward Thomson | 2022-07-07 | 3 | -25/+61 |
| | | | | Tidy up `nfmt` / `pathfmt`. | ||||
* | odb: add git_odb_loose_backend_options | Edward Thomson | 2022-07-07 | 5 | -38/+91 |
| | | | | Move the arguments to `git_odb_loose` into an options structure. | ||||
* | odb: accept an oid type in options | Edward Thomson | 2022-07-07 | 4 | -16/+33 |
| | | | | | Allow the object database to take an oid type that it supports. This oid type will be used to validate the objects that the backends provide. | ||||
* | odb: add git_odb_options | Edward Thomson | 2022-07-07 | 16 | -25/+61 |
| | | | | | 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 into | Edward Thomson | 2022-07-07 | 16 | -79/+136 |
| | | | | | The git_odb_hash helper functions should not assume SHA1, and instead should be given the oid type that they're producing. | ||||
* | oid: provide an oid type to hash type map | Edward Thomson | 2022-07-07 | 1 | -0/+13 |
| | | | | | | We intentionally separate oid types from hash types; a hash is a generic hunk of bytes, an object id has meaning and backs an object on disk. As a result of this separation, we need a 1:1 mapping. | ||||
* | oid: specify a default implementation | Edward Thomson | 2022-07-07 | 1 | -0/+3 |
| | | | | libgit2's current default oid type is SHA1, set a public macro for that. | ||||
* | clar: format sha256 in cl_assert_equal_oid | Edward Thomson | 2022-07-07 | 1 | -2/+19 |
| | |||||
* | oid: add sha256 typed oids | Edward Thomson | 2022-07-07 | 4 | -54/+137 |
| | |||||
* | oid: give oids a type | Edward Thomson | 2022-07-07 | 190 | -1007/+1152 |
| | | | | | `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 object | Edward Thomson | 2022-07-07 | 6 | -22/+34 |
| | |||||
* | object: move oid header parsing to object | Edward Thomson | 2022-07-07 | 6 | -33/+44 |
| | |||||
* | oid: include maximum oid raw/hex sizes | Edward Thomson | 2022-07-07 | 1 | -0/+2 |
| | |||||
* | oid: add functions to inspect oid information | Edward Thomson | 2022-07-07 | 1 | -0/+20 |
| | | | | | Provide helper functions to provide information about the object id size given its type. | ||||
* | oid: introduce `git_oid_t` | Edward Thomson | 2022-07-07 | 1 | -0/+5 |
| | | | | | | We require an enumeration to help us identify the different types of object IDs. Currently, we only support SHA1 but we will support SHA256 in the future. | ||||
* | oid: define GIT_OID_SHA1_ZERO | Edward Thomson | 2022-07-07 | 24 | -62/+65 |
| | | | | | 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 Thomson | 2022-07-07 | 81 | -355/+355 |
| | | | | | In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ` need to indicate that they're the size of _SHA1_ OIDs. | ||||
* | meta: update version number to v1.6.0-alpha | Edward Thomson | 2022-07-07 | 3 | -5/+5 |
| | |||||
* | v1.5: update version numbers | Edward Thomson | 2022-07-07 | 2 | -3/+3 |
| | |||||
* | v1.5: update the changelog | Edward Thomson | 2022-07-07 | 1 | -0/+70 |
| | |||||
* | Merge pull request #6333 from jpalus/pcre2-detection | Edward Thomson | 2022-07-07 | 2 | -5/+4 |
|\ | | | | | cmake: drop posix dependency from pcre* detection | ||||
| * | cmake: drop posix dependency from pcre* detection | Jan Palus | 2022-07-07 | 2 | -5/+4 |
| | | | | | | | | | | since f585b12 neither PCRE nor PCRE2 backends rely on POSIX regex, so reflect it in library detection logic | ||||
* | | Merge pull request #6334 from i-tengfei/fix-rebase-interactive | Edward Thomson | 2022-07-07 | 1 | -1/+11 |
|\ \ | | | | | | | fix interactive rebase detect. | ||||
| * | | rebase: formatting fixes | Edward Thomson | 2022-07-06 | 1 | -3/+4 |
| | | | |||||
| * | | fix interactive rebase detect. | Tengfei | 2022-06-28 | 1 | -1/+10 |
| |/ | |||||
* | | Merge pull request #6335 from kcsaul/fix/config-find-system-file | Edward Thomson | 2022-07-06 | 1 | -2/+2 |
|\ \ | | | | | | | Fix internal git_sysdir_find* function usage within public git_config_find* functions | ||||
| * | | config: use correct git_sysdir_find* function within git_config_find* functions | Kevin Saul | 2022-06-28 | 1 | -2/+2 |
| |/ | |||||
* | | Merge pull request #6340 from vishwin/main | Edward Thomson | 2022-07-06 | 1 | -1/+3 |
|\ \ | | | | | | | ntlmclient: LibreSSL 3.5 removed HMAC_CTX_cleanup | ||||
| * | | ntlmclient: LibreSSL 3.5 removed HMAC_CTX_cleanup | Charlie Li | 2022-07-03 | 1 | -1/+3 |
| |/ | | | | | | | | | | | https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.0-relnotes.txt Modify guard to declare dummy function. | ||||
* | | Merge pull request #6343 from libgit2/ethomson/ci | Edward Thomson | 2022-07-06 | 4 | -12/+16 |
|\ \ | | | | | | | ci: update dockerfiles for mbedTLS new url | ||||
| * | | ci: update dockerfiles for mbedTLS new url | Edward Thomson | 2022-07-06 | 3 | -11/+11 |
| | | | | | | | | | | | | Update the new URL for mbedTLS. | ||||
| * | | actions: pass UID and GID to PR builds of dockerfiles | Edward Thomson | 2022-07-06 | 1 | -1/+5 |
|/ / | |||||
* | | Merge pull request #6342 from libgit2/ethomson/actions_limits | Edward Thomson | 2022-07-06 | 3 | -36/+41 |
|\ \ | |/ |/| | CI: limits actions scheduled workflows to the main repo | ||||
| * | actions: move CodeQL workflow into nightly | Edward Thomson | 2022-07-06 | 2 | -40/+29 |
| | | |||||
| * | actions: limit secheduled workflows to our main repo | Edward Thomson | 2022-07-06 | 3 | -1/+17 |
|/ | | | | | Only run scheduled workflows on the main repository; prevents people from using build minutes on their forks. | ||||
* | Merge pull request #6303 from zawata/legacy_buffer_stream_segfault | Edward Thomson | 2022-06-22 | 1 | -0/+30 |
|\ | | | | | filter: Fix Segfault | ||||
| * | copy back git_buf after callback | John Alden | 2022-06-22 | 1 | -6/+16 |
| | | |||||
| * | fix indentation, copy asize | John Alden | 2022-06-16 | 1 | -7/+9 |
| | | |||||
| * | Address feedback | John Alden | 2022-06-14 | 1 | -3/+11 |
| | | | | | | Co-authored-by: Edward Thomson <ethomson@github.com> | ||||
| * | Call legacy_write_fn if given | John Alden | 2022-05-13 | 1 | -0/+10 |
| | | |||||
* | | Merge pull request #6321 from libgit2/ethomson/ownership | Edward Thomson | 2022-06-13 | 2 | -3/+4 |
|\ \ | | | | | | | repo: allow administrator to own the configuration | ||||
| * | | repo: allow administrator to own the configuration | Edward Thomson | 2022-06-13 | 2 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | Update our ownership checks that were introduced in libgit2 v1.4.3 (to combat CVE 2022-24765). These were not compatible with git's; git itself allows administrators to own the path. Our checks now match this behavior. | ||||
* | | | Merge pull request #6322 from libgit2/ethomson/stat | Edward Thomson | 2022-06-13 | 1 | -2/+5 |
|\ \ \ | | | | | | | | | status: update documentation for default options |