summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | remote: introduce set_instance_urlEdward Thomson2021-08-273-3/+102
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users may want to override the URL on a particular instance of a remote, instead of updating the configuration. Previously, users could use a callback to do this, but this is not particularly idiomatic.
* | | | | | | Merge pull request #6009 from libgit2/ethomson/custom_cert_locationsEdward Thomson2021-08-2910-19/+190
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | opts: test GIT_OPT_SET_SSL_CERT_LOCATIONS
| * | | | | | mbedTLS: Fix setting certificate directoryethomson/custom_cert_locationsZachary Michaels2021-08-293-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #6003
| * | | | | | opts: test GIT_OPT_SET_SSL_CERT_LOCATIONSEdward Thomson2021-08-297-4/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include a self-signed certificate for test.libgit2.org:1443 that we can use to verify that GIT_OPT_SET_SSL_CERT_LOCATIONS works.
| * | | | | | ci: stop on test failureEdward Thomson2021-08-291-0/+5
| | |/ / / / | |/| | | |
* | | | | | Merge pull request #5841 from J0Nes90/features/checkout-dry-runEdward Thomson2021-08-293-0/+55
|\ \ \ \ \ \ | | | | | | | | | | | | | | Checkout dry-run
| * | | | | | Update include/git2/checkout.hEdward Thomson2021-08-291-1/+4
| | | | | | |
| * | | | | | implement GIT_CHECKOUT_DRY_RUN to allow notifications without touching the ↵Jochen Hunz2021-04-143-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | working directory
* | | | | | | Merge pull request #5405 from lhchavez/multi-pack-index-odb-writeEdward Thomson2021-08-295-5/+163
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | midx: Introduce git_odb_write_multi_pack_index()
| * \ \ \ \ \ \ Merge branch 'main' into multi-pack-index-odb-writeEdward Thomson2021-08-2916-114/+352
| |\ \ \ \ \ \ \
| * | | | | | | | midx: Introduce git_odb_write_multi_pack_index()lhchavez2021-08-275-5/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces git_odb_write_multi_pack_index(), which creates a `multi-pack-index` file from all the `.pack` files that have been loaded in the ODB. Fixes: #5399
| * | | | | | | | midx: Add a way to write multi-pack-index fileslhchavez2021-08-277-0/+607
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the git_midx_writer_* functions to allow to write and create `multi-pack-index` files from `.idx`/`.pack` files. Part of: #5399
* | | | | | | | Merge pull request #5395 from josharian/http-use-eauthEdward Thomson2021-08-299-23/+27
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | Use error code GIT_EAUTH for authentication failures
| * | | | | | | Merge branch 'main' into http-use-eauthEdward Thomson2021-08-291532-8569/+20914
| |\ \ \ \ \ \ \ | | | |_|/ / / / | | |/| | | | |
| * | | | | | | transports: use GIT_EAUTH for authentication failuresJosh Bleecher Snyder2020-02-078-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the failure is clearly an auth failure (as opposed to possibly an auth failure), use the error code GIT_EAUTH instead of GIT_ERROR. While we're here, fix a typo and improve an error message. Fixes #5389.
| * | | | | | | changelog: note new error class GIT_ERROR_HTTPJosh Bleecher Snyder2020-02-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates #5389
| * | | | | | | use consistent whitespace before commentsJosh Bleecher Snyder2020-02-071-6/+6
| | | | | | | |
* | | | | | | | Merge pull request #5404 from lhchavez/multi-pack-index-writeEdward Thomson2021-08-297-0/+607
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | midx: Add a way to write multi-pack-index files
| * | | | | | | Merge remote-tracking branch 'origin/main' into multi-pack-index-writelhchavez2021-08-27121-1052/+3704
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | |
| * | | | | | | Review feedbacklhchavez2021-08-273-19/+25
| | | | | | | |
| * | | | | | | midx: Add a way to write multi-pack-index fileslhchavez2021-07-267-0/+601
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the git_midx_writer_* functions to allow to write and create `multi-pack-index` files from `.idx`/`.pack` files. Part of: #5399
* | | | | | | | Merge pull request #6015 from boretrk/c89-commentsEdward Thomson2021-08-292-9/+9
|\ \ \ \ \ \ \ \
| * | | | | | | | tests: change comments to c89 stylePeter Pettersson2021-08-292-9/+9
|/ / / / / / / /
* | | | | | | | Merge pull request #5508 from libgit2/ethomson/devcontainerEdward Thomson2021-08-284-0/+66
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | WIP: .devcontainer: settings for a codespace workflow
| * | | | | | | | VSCode: build in parallelethomson/devcontainerEdward Thomson2021-08-021-1/+1
| | | | | | | | |
| * | | | | | | | Update VSCode / Github Codespaces workflowEdward Thomson2021-08-024-1/+64
| | | | | | | | |
| * | | | | | | | .devcontainer: settings for a codespace workflowEdward Thomson2021-08-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add devcontainer settings for running within a codespace.
* | | | | | | | | Merge pull request #6013 from lolgear/cmake_hash_sha_missing_headerEdward Thomson2021-08-281-0/+1
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / |/| | | | | | | | CMake. hash sha1 header has been added.
| * | | | | | | | cmake: select hashes umbrella variable has been removed.Dmitry Lobanov2021-08-281-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Edward Thomson <ethomson@github.com>
| * | | | | | | | cmake: select hashes missing umbrella header has been added.Dmitry Lobanov2021-08-281-0/+2
|/ / / / / / / /
* | | | | | | | Merge pull request #6008 from boretrk/arrayEdward Thomson2021-08-271-8/+8
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | git_array_alloc: return objects of correct type
| * | | | | | | | git_array_alloc: return objects of correct typePeter Pettersson2021-08-251-8/+8
| | | | | | | | |
* | | | | | | | | Merge pull request #5747 from lhchavez/atomic-testsEdward Thomson2021-08-275-52/+234
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Homogenize semantics for atomic-related functions
| * | | | | | | | | Homogenize semantics for atomic-related functionslhchavez2021-08-265-52/+234
| | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were some subtle semantic differences between the various implementations of atomic functions. Now they behave the same, have tests and are better documented to avoid this from happening again in the future. Of note: * The semantics chosen for `git_atomic_compare_and_swap` match `InterlockedCompareExchangePointer`/`__sync_cal_compare_and_swap` now. * The semantics chosen for `git_atomic_add` match `InterlockedAdd`/`__atomic_add_fetch`. * `git_atomic_swap` and `git_atomic_load` still have a bit of semantic difference with the gcc builtins / msvc interlocked operations, since they require an l-value (not a pointer). If desired, this can be homogenized.
* | | | | | | | | Merge pull request #6010 from A-Ovchinnikov-mx/a-ovchin/remote-head-branch-cloneEdward Thomson2021-08-262-44/+33
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | Set refs/remotes/origin/HEAD to default branch when branch is specified
| * | | | | | | | Check if default branch matches refspecAlexander Ovchinnikov2021-08-261-0/+3
| | | | | | | | |
| * | | | | | | | clone: set refs/remotes/origin/HEAD to default branch when branch is ↵Alexander Ovchinnikov2021-08-262-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specified, attempt 2
| * | | | | | | | Revert "Merge pull request #5775 from libgit2/ethomson/clone_branch"Alexander Ovchinnikov2021-08-262-50/+21
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 487f2a8287c4d1d41d39e05ac53d0e50c679d7e9, reversing changes made to c6cf7f0e6927f1b264a7dda2467d70b9f744a01f.
* | | | | | | | Merge pull request #6007 from boretrk/arrayEdward Thomson2021-08-253-8/+9
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | array: check dereference from void * type
| * | | | | | | 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-254-15/+16
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | GCC C11 warnings
| * | | | | | | win32: name the dummy union in GIT_REPARSE_DATA_BUFFERPeter Pettersson2021-08-253-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | | enable gcc warnings for C11 specific extensionsPeter Pettersson2021-08-251-0/+1
| | | | | | | |
* | | | | | | | Merge pull request #5802 from lhchavez/git-warn-unused-resultEdward Thomson2021-08-2514-35/+65
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | 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-082-18/+18
| | | | | | | | |
| * | | | | | | | Handle one more unused variable introduced since the PR startedlhchavez2021-08-081-1/+7
| | | | | | | | |
| * | | | | | | | Add guidelines for the GIT_WARN_UNUSED_RESULT annotationlhchavez2021-08-081-1/+12
| | | | | | | | |