summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | array: fix dereference from void * typePeter Pettersson2021-08-252-4/+5
| | | | | | |
| * | | | | | array: make gcc keep the type of the NULL return valuePeter Pettersson2021-08-251-4/+4
| | | | | | |
* | | | | | | Merge pull request #6006 from boretrk/c11-warningsEdward Thomson2021-08-252-10/+10
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | GCC C11 warnings
| * | | | | | win32: name the dummy union in GIT_REPARSE_DATA_BUFFERPeter Pettersson2021-08-252-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of buf->"typeofbuffer"ReparseBuffer the members will be referenced with buf->ReparseBuffer."typeofbuffer" https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/ns-ntifs-_reparse_data_buffer?redirectedfrom=MSDN calls the union DUMMYUNIONNAME but that looks a bit cluttered.
* | | | | | | Merge pull request #5802 from lhchavez/git-warn-unused-resultEdward Thomson2021-08-258-17/+52
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Introduce GIT_WARN_UNUSED_RESULT
| * | | | | | | formattinglhchavez2021-08-081-4/+4
| | | | | | | |
| * | | | | | | Get Win32 builds to buildlhchavez2021-08-082-19/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the location of `GIT_WARN_UNUSED_RESULT` was causing it to be included _after_ a bunch of other headers (namely `src/vector.h`), which broke the build. This change does two things: * Moves the `GIT_WARN_UNUSED_RESULT` above most of the `$include`s in `src/common.h`. * Stops including `vector.h` from `src/win32/path_w32.c` since the header itself does not use it.
| * | | | | | | Move GIT_WARN_UNUSED_RESULT from the public to the private APIlhchavez2021-08-081-0/+18
| | | | | | | |
| * | | | | | | Handle one more unused variable introduced since the PR startedlhchavez2021-08-081-1/+7
| | | | | | | |
| * | | | | | | Be a little bit less aggressive GIT_WARN_UNUSED_RESULTlhchavez2021-08-081-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we're limiting ourselves to only functions that allocate or acquire locks.
| * | | | | | | Proof-of-concept for a more aggressive GIT_UNUSED()lhchavez2021-08-084-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a `-Wunused-result`-proof `GIT_UNUSED()`, just to demonstrate that it works. With this, sortedcache.h is now completely `GIT_WARN_UNUSED_RESULT`-annotated!
| * | | | | | | Introduce GIT_WARN_UNUSED_RESULTlhchavez2021-08-082-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the GIT_WARN_UNUSED_RESULT annotation, which makes the compiler warn when a return result is not used. This avoids bugs.
* | | | | | | | Merge pull request #5950 from boretrk/posixtestEdward Thomson2021-08-256-5/+26
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | open: input validation for empty segments in path
| * | | | | | | bugfix: don't generate paths with empty segmentsPeter Pettersson2021-08-082-5/+6
| | | | | | | |
| * | | | | | | tests: optional test for p_open() with empty path segmentsPeter Pettersson2021-08-084-0/+20
| |/ / / / / /
* | | | | | | c90/c99: name the unnamed union in git_hash_ctxPeter Pettersson2021-08-252-6/+6
| | | | | | |
* | | | | | | openssl: lazily load libraries when dynamically loadingEdward Thomson2021-08-241-6/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Defer dlopen until it's needed when dynamically loading OpenSSL libraries.
* | | | | | | openssl: dynamically load on macOSEdward Thomson2021-08-241-0/+2
| | | | | | |
* | | | | | | ntlmclient: update to ntlmclient 0.9.1Edward Thomson2021-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The ntlmclient dependency can now dynamically load OpenSSL.
* | | | | | | openssl: dynamically load libssl and symbols (optionally)Edward Thomson2021-08-249-83/+789
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide an interface around OpenSSL to dynamically load the libraries and symbols, so that users can distribute a libgit2 library that is not linked directly against OpenSSL. This enables users to target multiple distributions with a single binary. This mechanism is optional and disabled by default. Configure cmake with -DUSE_HTTPS=OpenSSL-Dynamic to use it.
* | | | | | | openssl: separate legacy apiEdward Thomson2021-08-243-188/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the OpenSSL stream implementation so that the legacy code is better abstracted. This will enable future development.
* | | | | | | openssl: don't fail when we can't customize allocatorsethomson/openssl_valgrindEdward Thomson2021-08-211-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During valgrind runs, we try to swap out the OpenSSL allocators for our own. This allows us to avoid some unnecessary warnings about usage. Unfortunately, many builds of OpenSSL do not allow you to swap allocators; for example FIPS builds and the builds running in CentOS. Try to swap the allocators, but do not fail when they cannot be customized.
* | | | | | | sha1dc: remove conditional for <sys/types.h>Peter Pettersson2021-08-181-2/+0
| | | | | | |
* | | | | | | Fix LIBGIT2_FILENAME not being passed to the resource compilerJulien Richard2021-08-171-1/+1
| | | | | | |
* | | | | | | Merge pull request #5972 from libgit2/ethomson/http_empty_passwordEdward Thomson2021-08-141-2/+6
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | http: don't require a password
| * | | | | | | http: don't require a passwordethomson/http_empty_passwordEdward Thomson2021-08-051-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempt authentication when a username is presented but a password is not; this can happen in particular when users are doing token authentication and specifying the token in the URL itself. For example, `https://token@host/` is a valid URI and should be treated as a username of `token` with an empty password.
* | | | | | | | Merge pull request #5854 from alexjg/respect-force-flag-in-remote-fetchEdward Thomson2021-08-101-0/+5
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | Respect the force flag on refspecs in git_remote_fetch
| * | | | | | | skip descendant check if remote ref not foundAlex Good2021-08-051-1/+3
| | | | | | | |
| * | | | | | | Merge branch 'main' into respect-force-flag-in-remote-fetchAlex Good2021-06-302-3/+8
| |\ \ \ \ \ \ \
| * | | | | | | | Respect the force flag on refspecs in git_remote_fetchAlex Good2021-06-111-0/+3
| | | | | | | | |
* | | | | | | | | cmake: extended futimens checking on macOSethomson/futimensEdward Thomson2021-07-301-1/+1
| | | | | | | | |
* | | | | | | | | tests: reset odb backend priorityethomson/odb_tests_priorityEdward Thomson2021-07-302-2/+5
| | | | | | | | |
* | | | | | | | | odb: Implement option for overriding of default odb backend priorityTony De La Nuez2021-07-302-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce GIT_OPT_SET_ODB_LOOSE_PRIORITY and GIT_OPT_SET_ODB_PACKED_PRIORITY to allow overriding the default priority values for the default ODB backends. Libgit2 has historically assumed that most objects for long- running operations will be packed, therefore GIT_LOOSE_PRIORITY is set to 1 by default, and GIT_PACKED_PRIORITY to 2. When a client allows libgit2 to set the default backends, they can specify an override for the two priority values in order to change the order in which each ODB backend is accessed.
* | | | | | | | | Merge branch 'pr/5861'Edward Thomson2021-07-301-3/+13
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | branch: git branch upstream with format format name parameter has been added.Dmitry Lobanov2021-05-181-28/+3
| | | | | | | | | |
| * | | | | | | | | branch: git branch upstream functions layouts have been fixed.Dmitry Lobanov2021-05-161-4/+6
| | | | | | | | | |
| * | | | | | | | | branch: git branch upstream format enum has been added.Dmitry Lobanov2021-05-161-4/+27
| | | | | | | | | |
| * | | | | | | | | branch: git branch upstream functions layouts have been fixed.Dmitry Lobanov2021-05-161-2/+4
| | | | | | | | | |
| * | | | | | | | | branch: git branch upstream merge has been exposed.Dmitry Lobanov2021-05-121-0/+8
| | | | | | | | | |
| * | | | | | | | | branch: git branch upstream with format has been added.Dmitry Lobanov2021-05-121-2/+2
| | | | | | | | | |
* | | | | | | | | | Merge pull request #5953 from boretrk/c99-inlineEdward Thomson2021-07-301-0/+2
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | common.h: use inline when compiling for C99 and later
| * | | | | | | | | | common.h: use inline when compiling for c99 and laterPeter Pettersson2021-07-261-0/+2
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #5952 from libgit2/ethomson/attrs_from_commitEdward Thomson2021-07-2910-183/+363
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ / |/| | | | | | | | | | Support reading attributes from a specific commit
| * | | | | | | | | | filter: introduce GIT_BLOB_FILTER_ATTRIBUTES_FROM_COMMITEdward Thomson2021-07-222-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a mechanism to filter using attribute data from a specific commit (making use of `GIT_ATTR_CHECK_INCLUDE_COMMIT`).
| * | | | | | | | | | attr: introduce GIT_ATTR_CHECK_INCLUDE_COMMITEdward Thomson2021-07-224-17/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce `GIT_ATTR_CHECK_INCLUDE_COMMIT`, which like 4fd5748 allows attribute information to be read from files in the repository. 4fd5748 always reads the information from HEAD, while `GIT_ATTR_CHECK_INCLUDE_COMMIT` allows users to provide the commit to read the attributes from.
| * | | | | | | | | | attr: cache nonexistent attr files from commitsEdward Thomson2021-07-221-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When looking up an attribute file in a commit, we can cache a nonexistent attribute file indefinitely (since a commit could not somehow later contain an attribute file). Cache an empty buffer when an attribute file does not exist in a given commit.
| * | | | | | | | | | filter: add git_filter_optionsEdward Thomson2021-07-222-15/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow filter users to provide an options structure instead of simply flags. This allows for future growth for filter options.
| * | | | | | | | | | filter: filter options are now "filter sessions"Edward Thomson2021-07-223-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Filters use a short-lived structure to keep state during an operation to allow for caching and avoid unnecessary reallocations. This was previously called the "filter options", despite the fact that they contain no configurable options. Rename them to a "filter session" in keeping with an "attribute session", which more accurately describes their use (and allows us to create "filter options" in the future).
| * | | | | | | | | | attr: introduce `git_attr_options` for extended queriesEdward Thomson2021-07-223-19/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow more advanced attribute queries using a `git_attr_options`, and extended functions to use it. Presently there is no additional configuration in a `git_attr_options` beyond the flags, but this is for future growth.
| * | | | | | | | | | attr: include the filename in the attr sourceEdward Thomson2021-07-226-78/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The attribute source object is now the type and the path.