summaryrefslogtreecommitdiff
path: root/include/git2
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5532 from joshtriplett/pack-default-pathEdward Thomson2020-06-021-1/+1
|\ | | | | git_packbuilder_write: Allow setting path to NULL to use the default path
| * git_packbuilder_write: Allow setting path to NULL to use the default pathJosh Triplett2020-05-231-1/+1
| | | | | | | | | | | | If given a NULL path, write to the object path of the repository. Add tests for the new behavior.
* | strarray: deprecate git_strarray_copyEdward Thomson2020-06-011-0/+12
| | | | | | | | | | | | We should not be in the business of copying strings around for users. We either return a strarray that can be freed, or we take one (and do not mutate it).
* | strarray: we should `dispose` instead of `free`Edward Thomson2020-06-012-10/+30
|/ | | | | | We _dispose_ the contents of objects; we _free_ objects (and their contents). Update `git_strarray_free` to be `git_strarray_dispose`. `git_strarray_free` remains as a deprecated proxy function.
* Introduce GIT_ASSERT macrosEdward Thomson2020-05-111-1/+2
| | | | | | | | | | | | Provide macros to replace usages of `assert`. A true `assert` is punishing as a library. Instead we should do our best to not crash. GIT_ASSERT_ARG(x) will now assert that the given argument complies to some format and sets an error message and returns `-1` if it does not. GIT_ASSERT(x) is for internal usage, and available as an internal consistency check. It will set an error message and return `-1` in the event of failure.
* blame: add option to ignore whitespace changesCarl Schwan2020-04-141-0/+2
|
* version.h: bump version to v1.0.0Patrick Steinhardt2020-03-281-4/+4
|
* Merge pull request #5464 from pks-t/pks/refdb-backend-docsPatrick Steinhardt2020-03-261-2/+109
|\ | | | | refdb_backend: improve callback documentation
| * refdb_backend: improve callback documentationPatrick Steinhardt2020-03-261-2/+109
| | | | | | | | | | | | | | The callbacks are currently sparsely documented, making it really hard to implement a new backend without taking a look at the existing refdb_fs backend. Add documentation to make this task hopefully easier to achieve.
* | credentials: provide backcompat for opaque structsethomson/cred_deprecationEdward Thomson2020-03-261-0/+7
|/ | | | | | The credential structures are now opaque and defined in `sys/credential.h`. However, we should continue to provide them for backward compatibility, unless `GIT_DEPRECATED_HARD` is set.
* repository: improve commondir docsJosh Bleecher Snyder2020-03-071-4/+5
| | | | Fixes #5428
* version: update the version number to v0.99Edward Thomson2020-02-191-3/+3
| | | | | | This commit also switches our SOVERSION to be "$MAJOR.$MINOR" instead of "$MINOR", only. This is in preparation of v1.0, where the previous scheme would've stopped working in an obvious way.
* Merge pull request #5336 from libgit2/ethomson/credtypePatrick Steinhardt2020-01-3010-183/+289
|\ | | | | cred: change enum to git_credential_t and GIT_CREDENTIAL_*
| * credential: change git_cred to git_credentialethomson/credtypeEdward Thomson2020-01-2610-183/+289
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We avoid abbreviations where possible; rename git_cred to git_credential. In addition, we have standardized on a trailing `_t` for enum types, instead of using "type" in the name. So `git_credtype_t` has become `git_credential_t` and its members have become `GIT_CREDENTIAL` instead of `GIT_CREDTYPE`. Finally, the source and header files have been renamed to `credential` instead of `cred`. Keep previous name and values as deprecated, and include the new header files from the previous ones.
* | git_libgit2_version: return an intethomson/no_voidEdward Thomson2020-01-241-1/+2
| | | | | | | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* | error functions: return an intEdward Thomson2020-01-241-1/+2
| | | | | | | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* | revwalk functions: return an intEdward Thomson2020-01-241-3/+7
| | | | | | | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* | mempack functions: return an intEdward Thomson2020-01-241-1/+2
| | | | | | | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* | repository functions: return an intEdward Thomson2020-01-241-5/+12
| | | | | | | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* | index functions: return an intEdward Thomson2020-01-241-2/+4
| | | | | | | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* | remote functions: return an intEdward Thomson2020-01-241-2/+4
| | | | | | | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* | tree functions: return an intEdward Thomson2020-01-241-2/+4
| | | | | | | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* | oid functions: return an intEdward Thomson2020-01-241-5/+10
| | | | | | | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* | git_attr_cache_flush: return an intEdward Thomson2020-01-241-1/+4
|/ | | | | Stop returning a void for functions, future-proofing them to allow them to fail.
* http: introduce GIT_ERROR_HTTPethomson/gssapiEdward Thomson2020-01-241-1/+2
| | | | | Disambiguate between general network problems and HTTP problems in error codes.
* httpclient: support expect/continueEdward Thomson2020-01-241-1/+7
| | | | | | | | | | | | | Allow users to opt-in to expect/continue handling when sending a POST and we're authenticated with a "connection-based" authentication mechanism like NTLM or Negotiate. If the response is a 100, return to the caller (to allow them to post their body). If the response is *not* a 100, buffer the response for the caller. HTTP expect/continue is generally safe, but some legacy servers have not implemented it correctly. Require it to be opt-in.
* merge: Return non-const git_repository from git_merge_driver_source_repo ↵Laurence McGlashan2020-01-151-1/+1
| | | | accessor.
* Correct typo in name of referenced parameterRemy Suen2020-01-021-1/+1
| | | Signed-off-by: Remy Suen <remy.suen@gmail.com>
* Merge pull request #5300 from tiennou/fix/branch-documentationPatrick Steinhardt2019-12-131-57/+74
|\ | | | | branch: clarify documentation around branches
| * refs: rename git_reference__set_name to git_reference__reallocEtienne Samson2019-12-131-0/+6
| | | | | | | | | | | | | | | | | | | | | | As git_reference__name will reallocate storage to account for longer names (it's actually allocator-dependent), it will cause all existing pointers to the old object to become dangling, as they now point to freed memory. Fix the issue by renaming to a more descriptive name, and pass a pointer to the actual reference that can safely be invalidated if the realloc succeeds.
| * branch: clarify documentation around branchesEtienne Samson2019-12-071-57/+68
| |
* | stash: make comment match codeJosh Bleecher Snyder2019-12-041-1/+1
|/ | | | There is no git_stash_apply_flags_t above.
* Merge pull request #5315 from ↵Edward Thomson2019-12-011-2/+2
|\ | | | | | | | | kastiglione/dl/fix-copypaste-in-git_cherrypick_commit-docstring Fix copy&paste in git_cherrypick_commit docstring
| * Fix copy&paste in git_cherrypick_commit docstringDave Lee2019-11-291-2/+2
| |
* | Merge pull request #5306 from herrerog/patchidPatrick Steinhardt2019-11-281-0/+1
|\ \ | | | | | | diff: complete support for git patchid
| * | diff_print: add support for GIT_DIFF_FORMAT_PATCH_ID.Gregory Herrero2019-11-191-0/+1
| |/ | | | | | | | | | | | | Git is generating patch-id using a stripped down version of a patch where hunk header and index information are not present. Signed-off-by: Gregory Herrero <gregory.herrero@oracle.com>
* | Merge pull request #5307 from palmin/hash_sha256Patrick Steinhardt2019-11-281-0/+8
|\ \ | | | | | | ssh: include sha256 host key hash when supported
| * | ssh: include sha256 host key hash when supportedAnders Borum2019-11-201-0/+8
| |/
* | Merge pull request #5123 from libgit2/ethomson/off_tPatrick Steinhardt2019-11-287-11/+16
|\ \ | | | | | | Move `git_off_t` to `git_object_size_t`
| * | odb: use `git_object_size_t` for object sizeEdward Thomson2019-11-221-1/+1
| | | | | | | | | | | | | | | Instead of using a signed type (`off_t`) use a new `git_object_size_t` for the sizes of objects.
| * | blob: use `git_object_size_t` for object sizeEdward Thomson2019-11-222-7/+7
| | | | | | | | | | | | | | | Instead of using a signed type (`off_t`) use a new `git_object_size_t` for the sizes of objects.
| * | odb: use `git_object_size_t` for object sizeEdward Thomson2019-11-222-3/+3
| | | | | | | | | | | | | | | Instead of using a signed type (`off_t`) use a new `git_object_size_t` for the sizes of objects.
| * | types: introduce `git_object_size_t`Edward Thomson2019-11-222-0/+5
| |/ | | | | | | | | Introduce `git_object_size_t`, an unsigned type that we can use for the maximum size of git objects.
* | Move deprecated git_attr_t typedef to previous attribute sectionLukas Berk2019-11-271-13/+0
| |
* | Add attr.h includeLukas Berk2019-11-271-0/+1
| |
* | Add compat typdef for git_attr_tLukas Berk2019-11-271-0/+15
|/ | | | | Some libraries haven't updated to git_attr_value_t and break. Adding the comapt typedef as suggested.
* apply: add GIT_APPLY_CHECKDrew DeVault2019-10-221-0/+12
| | | | | This adds an option which will check if a diff is applicable without actually applying it; equivalent to git apply --check.
* submodule: provide a wrapper for simple submodule clone stepsEtienne Samson2019-10-171-1/+18
|
* Merge pull request #5106 from tiennou/fix/ref-api-fixesPatrick Steinhardt2019-09-271-21/+57
|\ | | | | git_refdb API fixes
| * refdb: documentationEtienne Samson2019-09-051-21/+57
| |