summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* pack: support SHA256 in packfilesethomson/sha256_packEdward Thomson2022-07-1118-129/+348
|
* pack: don't pretend we support pack files v3Edward Thomson2022-07-082-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: checkpointEdward Thomson2022-07-087-37/+57
|
* ci: run sha256 builds in ciEdward Thomson2022-07-071-40/+72
|
* sha256: make sha256 an experimental optional featureEdward Thomson2022-07-0722-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 Thomson2022-07-076-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 storageEdward Thomson2022-07-075-70/+515
| | | | Teach the loose object database how to cope with SHA256 objects.
* oid: add git_oid_fmt_substrEdward Thomson2022-07-073-25/+61
| | | | Tidy up `nfmt` / `pathfmt`.
* odb: add git_odb_loose_backend_optionsEdward Thomson2022-07-075-38/+91
| | | | Move the arguments to `git_odb_loose` into an options structure.
* odb: accept an oid type in optionsEdward Thomson2022-07-074-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_optionsEdward Thomson2022-07-0716-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 intoEdward Thomson2022-07-0716-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 mapEdward Thomson2022-07-071-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 implementationEdward Thomson2022-07-071-0/+3
| | | | libgit2's current default oid type is SHA1, set a public macro for that.
* clar: format sha256 in cl_assert_equal_oidEdward Thomson2022-07-071-2/+19
|
* oid: add sha256 typed oidsEdward Thomson2022-07-074-54/+137
|
* oid: give oids a typeEdward Thomson2022-07-07190-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 objectEdward Thomson2022-07-076-22/+34
|
* object: move oid header parsing to objectEdward Thomson2022-07-076-33/+44
|
* oid: include maximum oid raw/hex sizesEdward Thomson2022-07-071-0/+2
|
* oid: add functions to inspect oid informationEdward Thomson2022-07-071-0/+20
| | | | | Provide helper functions to provide information about the object id size given its type.
* oid: introduce `git_oid_t`Edward Thomson2022-07-071-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_ZEROEdward Thomson2022-07-0724-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 Thomson2022-07-0781-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-alphaEdward Thomson2022-07-073-5/+5
|
* v1.5: update version numbersEdward Thomson2022-07-072-3/+3
|
* v1.5: update the changelogEdward Thomson2022-07-071-0/+70
|
* Merge pull request #6333 from jpalus/pcre2-detectionEdward Thomson2022-07-072-5/+4
|\ | | | | cmake: drop posix dependency from pcre* detection
| * cmake: drop posix dependency from pcre* detectionJan Palus2022-07-072-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-interactiveEdward Thomson2022-07-071-1/+11
|\ \ | | | | | | fix interactive rebase detect.
| * | rebase: formatting fixesEdward Thomson2022-07-061-3/+4
| | |
| * | fix interactive rebase detect.Tengfei2022-06-281-1/+10
| |/
* | Merge pull request #6335 from kcsaul/fix/config-find-system-fileEdward Thomson2022-07-061-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* functionsKevin Saul2022-06-281-2/+2
| |/
* | Merge pull request #6340 from vishwin/mainEdward Thomson2022-07-061-1/+3
|\ \ | | | | | | ntlmclient: LibreSSL 3.5 removed HMAC_CTX_cleanup
| * | ntlmclient: LibreSSL 3.5 removed HMAC_CTX_cleanupCharlie Li2022-07-031-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/ciEdward Thomson2022-07-064-12/+16
|\ \ | | | | | | ci: update dockerfiles for mbedTLS new url
| * | ci: update dockerfiles for mbedTLS new urlEdward Thomson2022-07-063-11/+11
| | | | | | | | | | | | Update the new URL for mbedTLS.
| * | actions: pass UID and GID to PR builds of dockerfilesEdward Thomson2022-07-061-1/+5
|/ /
* | Merge pull request #6342 from libgit2/ethomson/actions_limitsEdward Thomson2022-07-063-36/+41
|\ \ | |/ |/| CI: limits actions scheduled workflows to the main repo
| * actions: move CodeQL workflow into nightlyEdward Thomson2022-07-062-40/+29
| |
| * actions: limit secheduled workflows to our main repoEdward Thomson2022-07-063-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_segfaultEdward Thomson2022-06-221-0/+30
|\ | | | | filter: Fix Segfault
| * copy back git_buf after callbackJohn Alden2022-06-221-6/+16
| |
| * fix indentation, copy asizeJohn Alden2022-06-161-7/+9
| |
| * Address feedbackJohn Alden2022-06-141-3/+11
| | | | | | Co-authored-by: Edward Thomson <ethomson@github.com>
| * Call legacy_write_fn if givenJohn Alden2022-05-131-0/+10
| |
* | Merge pull request #6321 from libgit2/ethomson/ownershipEdward Thomson2022-06-132-3/+4
|\ \ | | | | | | repo: allow administrator to own the configuration
| * | repo: allow administrator to own the configurationEdward Thomson2022-06-132-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/statEdward Thomson2022-06-131-2/+5
|\ \ \ | | | | | | | | status: update documentation for default options