- 20 Jun, 2022 13 commits
-
-
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.
Edward Thomson committed -
Linux has a /usr/include/features.h, which gets confusing; update this to `git2_features.h` and move it into the `util` directory.
Edward Thomson committed -
Teach the loose object database how to cope with SHA256 objects.
Edward Thomson committed -
Tidy up `nfmt` / `pathfmt`.
Edward Thomson committed -
Move the arguments to `git_odb_loose` into an options structure.
Edward Thomson committed -
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.
Edward Thomson committed -
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.
Edward Thomson committed -
The git_odb_hash helper functions should not assume SHA1, and instead should be given the oid type that they're producing.
Edward Thomson committed -
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.
Edward Thomson committed -
libgit2's current default oid type is SHA1, set a public macro for that.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
`git_oid`s now have a type, and we require the oid type when creating the object id from creation functions.
Edward Thomson committed
-
- 15 Jun, 2022 7 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Provide helper functions to provide information about the object id size given its type.
Edward Thomson committed -
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.
Edward Thomson committed -
Callers should not assume the layout of the oid structure; provide them a macro that defines the null / zero sha1 object id.
Edward Thomson committed -
In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ` need to indicate that they're the size of _SHA1_ OIDs.
Edward Thomson committed
-
- 14 Jun, 2022 6 commits
-
-
repo: allow administrator to own the configuration
Edward Thomson committed -
status: update documentation for default options
Edward Thomson committed -
Edward Thomson committed
-
config: update config entry iteration lifecycle
Edward Thomson committed -
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.
Edward Thomson committed -
Edward Thomson committed
-
- 13 Jun, 2022 3 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
Look for `getentropy` and flag its existence.
Edward Thomson committed
-
- 12 Jun, 2022 4 commits
-
-
transport: introduce `git_transport_smart_remote_connect_options`
Edward Thomson committed -
Snuck in during refactoring; let's get rid of it.
Edward Thomson committed -
A couple of simplications around mwindow
Edward Thomson committed -
Add a .clang-format with our style
Edward Thomson committed
-
- 11 Jun, 2022 7 commits
-
-
lhchavez committed
-
Co-authored-by: Edward Thomson <ethomson@github.com>
lhchavez committed -
CLI: progress updates
Edward Thomson committed -
refs: fix missing error message
Edward Thomson committed -
docs: fix couple of typos
Edward Thomson committed -
revparse: Remove error-prone, redundant test
Edward Thomson committed -
midx: do not verify the checksum on load
Edward Thomson committed
-