summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ci: run docurium to create documentationethomson/ci_docuriumEdward Thomson2019-01-261-0/+23
| | | | | | | | | | Run docurium as part of the build. The goal of this is to be able to evaluate the documentation in a given pull request; as such, this does not implement any sort of deployment pipeline. This will allow us to download a snapshot of the documentation from the CI build and evaluate the docs for a particular pull request; before it's been merged.
* Merge pull request #4858 from tiennou/fix/index-ext-readEdward Thomson2019-01-2510-14/+54
|\ | | | | index: preserve extension parsing errors
| * index: preserve extension parsing errorsEtienne Samson2019-01-2410-14/+54
| | | | | | | | | | | | | | Previously, we would clobber any extension-specific error message with an "extension is truncated" message. This makes `read_extension` correctly preserve those errors, takes responsibility for truncation errors, and adds a new message with the actual extension signature for unsupported mandatory extensions.
* | Merge pull request #4952 from libgit2/ethomson/deprecationEdward Thomson2019-01-2515-263/+354
|\ \ | | | | | | Deprecate functions and constants more gently
| * | deprecation: define GIT_DEPRECATE_HARD internallyEdward Thomson2019-01-252-1/+5
| | | | | | | | | | | | | | | Ensure that we do not use any deprecated functions in the library source, test code or examples.
| * | deprecation: offer GIT_DEPRECATE_HARDEdward Thomson2019-01-251-0/+7
| | | | | | | | | | | | | | | Users can define `GIT_DEPRECATE_HARD` if they want to remove all functions that we've "softly" deprecated.
| * | deprecation: move deprecated tests into their own fileEdward Thomson2019-01-252-36/+60
| | | | | | | | | | | | | | | | | | Move the deprecated stream tests into their own compilation unit. This will allow us to disable any preprocessor directives that apply to deprecation just for these tests (eg, disabling `GIT_DEPRECATED_HARD`).
| * | deprecation: don't use deprecated stream cbEdward Thomson2019-01-251-1/+3
| | | | | | | | | | | | | | | | | | Avoid the deprecated `git_stream_cb` typedef since we want to compile the library without deprecated functions or types. Instead, we can unroll the alias to its actual type.
| * | deprecation: provide docurium deprecation noteEdward Thomson2019-01-251-0/+5
| | | | | | | | | | | | | | | Add `@deprecated` to the functions that are, so that they'll appear that way in docurium.
| * | deprecation: deprecated stream registration in if guardEdward Thomson2019-01-251-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | `git_stream_register_tls` is now deprecated; mark it in an if guard with the deprecation. This should not be included in `deprecated.h` since it is an uncommonly used `sys` header file.
| * | deprecation: update changelog to reflect new policiesEdward Thomson2019-01-251-6/+14
| | |
| * | deprecation: move deprecated bits to deprecated.hEdward Thomson2019-01-257-210/+242
| | |
| * | fuzzers: don't use deprecated typesEdward Thomson2019-01-251-1/+1
| | |
| * | examples: don't use deprecated typesEdward Thomson2019-01-251-2/+2
|/ /
* | Merge pull request #4957 from csware/deprecatedEdward Thomson2019-01-252-3/+3
|\ \ | | | | | | Don't use deprecated constants
| * | Don't use deprecated constantsSven Strickroth2019-01-242-3/+3
|/ / | | | | | | | | | | Follow up for PR #4917. Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | Merge pull request #4955 from csware/c4098Patrick Steinhardt2019-01-241-1/+1
|\ \ | |/ |/| Fix VS warning C4098: 'giterr_set_str' : void function returning a value
| * Fix VS warning C4098: 'giterr_set_str' : void function returning a valueSven Strickroth2019-01-241-1/+1
|/ | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Merge pull request #4917 from libgit2/ethomson/giterrEdward Thomson2019-01-22204-2040/+2150
|\ | | | | Move `giterr` to `git_error`
| * errors: update docs for giterr changesethomson/giterrEdward Thomson2019-01-223-19/+19
| |
| * errors: update static analysis tools for giterrEdward Thomson2019-01-222-5/+5
| | | | | | | | | | Update GITERR and giterr usages in the static code analysis tools to use the new names.
| * errors: remove giterr usage in examplesEdward Thomson2019-01-226-12/+12
| |
| * errors: remove giterr usage in fuzzersEdward Thomson2019-01-222-2/+2
| |
| * git_error: use new names in internal APIs and usageEdward Thomson2019-01-22184-1944/+1944
| | | | | | | | | | Move to the `git_error` name in the internal API for error-related functions.
| * git_error: deprecate error valuesEdward Thomson2019-01-222-35/+35
| | | | | | | | | | Replace the `GITERR` values with a `const int` to deprecate error values.
| * git_error: use full class name in public error APIEdward Thomson2019-01-228-58/+168
|/ | | | | | | | | Move to the `git_error` name in error-related functions, deprecating the `giterr` functions. This means, for example, that `giterr_last` is now `git_error_last`. The old names are retained for compatibility. This only updates the public API; internal API and function usage remains unchanged.
* Merge pull request #4949 from zlikavac32/fix-odb-foreach-cb-positive-error-codeEdward Thomson2019-01-203-2/+17
|\ | | | | odb: Fix odb foreach to also close on positive error code
| * Fix odb foreach to also close on positive error codeMarijan Ć uflaj2019-01-203-2/+17
|/ | | | | | | | In include/git2/odb.h it states that callback can also return positive value which should break looping. Implementations of git_odb_foreach() and pack_backend__foreach() did not respect that.
* Merge pull request #4948 from libgit2/ethomson/memleaksEdward Thomson2019-01-201-5/+8
|\ | | | | repository: free memory in symlink detection function
| * repository: free memory in symlink detection functionethomson/memleaksEdward Thomson2019-01-201-5/+8
| |
* | Merge pull request #4947 from libgit2/ethomson/proxyupdateEdward Thomson2019-01-202-4/+4
|\ \ | |/ |/| ci: update poxyproxy, run in quiet mode
| * ci: update poxyproxy, run in quiet modeEdward Thomson2019-01-202-4/+4
|/ | | | Update the proxy so that we can enable a quiet mode.
* Merge pull request #4945 from libgit2/ethomson/fix-intrinsicsEdward Thomson2019-01-201-22/+32
|\ | | | | Add/multiply with overflow tweaks
| * add with overflow: correct documentationethomson/fix-intrinsicsEdward Thomson2019-01-201-2/+2
| | | | | | | | | | Correct the documentation on the fallback add/multiply with overflow functions.
| * add with overflow: use SizeTAdd on WindowsEdward Thomson2019-01-201-0/+10
| | | | | | | | | | Windows provides <intsafe.h> which provides "performant" add and multiply with overflow operations. Use them when possible.
| * Remove unused git__add_uint64_overflowEdward Thomson2019-01-201-12/+0
| |
| * add with overflow intrinsics: simplify testsEdward Thomson2019-01-201-26/+18
| | | | | | | | | | | | Use the smallest unsigned type that is equivalent to `size_t` to simplify the conditionals. Error if we're on a system that we believe offers builtins but we cannot determine which one to use.
| * Let GCC use the add/mul overflow intrinsicslhchavez2019-01-091-10/+30
| | | | | | | | | | | | | | | | This change tweaks the macros for git__{add,multiply}_sizet_overflow so that GCC can use them. It also stops using the uadd,umul versions since the add,mul can handle way more cases.
* | Merge pull request #4944 from libgit2/ethomson/deprecationEdward Thomson2019-01-203-19/+20
|\ \ | | | | | | Improve deprecation of old enums
| * | deprecation: use the enum type in declarationEdward Thomson2019-01-202-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The C standard does not specify whether an enum is a signed or unsigned type. Obviously, any enum that includes negative values _must_ be signed, but if all values are positive then the compiler is free to choose signed or unsigned. Thus, by changing the type signatures to `git_object_t` and declaring the old `GIT_OBJ_` values as a signed or unsigned int, we risk a mismatch between what the compiler has chosen for a `git_object_t`'s type and our type declaration. Thus, we declare the deprecated values as the enum instead of guessing.
| * | deprecation: add `used` attributeEdward Thomson2019-01-201-0/+1
|/ / | | | | | | | | Recent GCC enables `-Wunused-const-variables`, which makes output quite noisy. Disable unused warnings for our deprecated variables.
* | Merge pull request #4939 from libgit2/ethomson/git_refEdward Thomson2019-01-1928-256/+291
|\ \ | | | | | | Move `git_ref_t` to `git_reference_t`
| * | references: use new names in internal usageethomson/git_refEdward Thomson2019-01-1726-243/+244
| | | | | | | | | | | | Update internal usage to use the `git_reference` names for constants.
| * | references: use full name in type namesEdward Thomson2019-01-172-13/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | Update the reference type names from an abbreviation (`git_ref`) to use the fullname (`git_reference`). This ensures that we are consistent with our naming for reference types and functions throughout the library. The previous names are now marked as deprecated.
* | | Merge pull request #4940 from libgit2/ethomson/git_objEdward Thomson2019-01-1920-51/+51
|\ \ \ | | | | | | | | More `git_obj` to `git_object` updates
| * | | object_type: convert final internal users to new namesethomson/git_objEdward Thomson2019-01-1710-17/+17
| | | | | | | | | | | | | | | | | | | | Update some missed types that were continuing to use the old `GIT_OBJ` names.
| * | | object_type: GIT_OBJECT_BAD is now GIT_OBJECT_INVALIDEdward Thomson2019-01-1710-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We use the term "invalid" to refer to bad or malformed data, eg `GIT_REF_INVALID` and `GIT_EINVALIDSPEC`. Since we're changing the names of the `git_object_t`s in this release, update it to be `GIT_OBJECT_INVALID` instead of `BAD`.
| * | | object_type: mark old values as deprecatedEdward Thomson2019-01-171-10/+10
| |/ / | | | | | | | | | | | | Mark old object type values as `static const` so that we can mark them as deprecated with the `GIT_DEPRECATED` macro.
* | | Merge pull request #4943 from libgit2/ethomson/ciEdward Thomson2019-01-196-21/+70
|\ \ \ | | | | | | | | ci: only run invasive tests in nightly
| * | | ci: run all invasive tests on windowsEdward Thomson2019-01-191-0/+4
| | | |