summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Merge remote-tracking branch 'origin/main' into cgraph-writelhchavez2021-08-2920-125/+778
| |\ \ \
| * | | | Fixups for the latest changes in the array interfacelhchavez2021-08-261-11/+21
| | | | |
| * | | | Merge remote-tracking branch 'origin/main' into cgraph-writelhchavez2021-08-2644-448/+1538
| |\ \ \ \
| * | | | | Make the defaultable fields defaultablelhchavez2021-08-261-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | Also, add `git_commit_graph_writer_options_init`!
| * | | | | Review feedbacklhchavez2021-08-011-37/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added the `PenaltyBreakAssignment: 1000` clang-format option to avoid breaking statements around the assignment operator. * Avoided using the dot initializer syntax. * Avoided casting allocations. * Also avoided casting `void *`.
| * | | | | commit-graph: Add a way to write commit-graph fileslhchavez2021-07-272-1/+660
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the git_commit_graph_writer_* functions to allow to write and create `commit-graph` files from `.idx`/`.pack` files or `git_revwalk`s. Part of: #5757
* | | | | | date: promote before multiplyethomson/fixupsEdward Thomson2021-08-301-1/+1
| | | | | |
* | | | | | filter: don't overwrite error valueEdward Thomson2021-08-301-1/+2
| | | | | |
* | | | | | hashsig: close fd on errorEdward Thomson2021-08-301-1/+3
| | | | | |
* | | | | | error: don't check string after assertEdward Thomson2021-08-301-5/+0
| | | | | |
* | | | | | pack: don't assert in the lockEdward Thomson2021-08-301-3/+16
| | | | | |
* | | | | | midx: return an error when detectedEdward Thomson2021-08-301-3/+7
| | | | | |
* | | | | | httpclient: actually return `GIT_EAUTH`Edward Thomson2021-08-301-1/+0
| | | | | |
* | | | | | Merge pull request #6017 from libgit2/ethomson/buf_is_readonlyEdward Thomson2021-08-291-0/+59
|\ \ \ \ \ \ | | | | | | | | | | | | | | buf: deprecate public git_buf writing functions
| * | | | | | buf: deprecate public git_buf writing functionsethomson/buf_is_readonlyEdward Thomson2021-08-291-0/+59
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A `git_buf` is now a read-only structure as far as callers are concerned. This is a mechanism that we can return data to callers using memory that is owned by the library and can be cleaned up by callers (using `git_buf_dispose`). A `git_buf` can no longer be allocated by callers or provided to the library.
* | | | | | Merge pull request #6011 from libgit2/ethomson/filter_applyEdward Thomson2021-08-294-55/+105
|\ \ \ \ \ \ | | | | | | | | | | | | | | filter: filter drivers stop taking git_buf as user input
| * | | | | | filter: deprecate apply functionethomson/filter_applyEdward Thomson2021-08-291-13/+28
| | | | | | |
| * | | | | | ident: use streaming filtersEdward Thomson2021-08-271-1/+12
| | | | | | |
| * | | | | | crlf: use streaming filtersEdward Thomson2021-08-271-1/+12
| | | | | | |
| * | | | | | filter: proxy_stream is now git_filter_buffered_streamEdward Thomson2021-08-272-43/+56
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The filter's proxy_stream is used to adapt filters that only provided an `apply` function into a `stream` function. Make this internal to the library instead of private to the filter file. This will allow the filters to use it directly, instead of relying on the filter functionality to do the proxying.
* | | | | | Merge pull request #6016 from libgit2/ethomson/commit_create_cbEdward Thomson2021-08-291-33/+69
|\ \ \ \ \ \ | | | | | | | | | | | | | | Introduce `create_commit_cb`, deprecate `signing_cb`
| * | | | | | rebase: deprecate signing_cbethomson/commit_create_cbEdward Thomson2021-08-291-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The signing callback should not be used; instead, callers should provide a commit_create_cb, perform the signing and commit creation themselves.
| * | | | | | rebase: introduce git_commit_create_cbEdward Thomson2021-08-291-35/+66
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new mechanism for `git_rebase_commit` for callers to customize the experience. Instead of assuming that we produce the commit for them, provide a commit creation callback that allows callers to produce the commit themselves and return the resulting commit id.
* | | | | | Merge pull request #6012 from libgit2/ethomson/custom_urlEdward Thomson2021-08-291-5/+59
|\ \ \ \ \ \ | | | | | | | | | | | | | | remote: introduce remote_ready_cb, deprecate resolve_url callback
| * | | | | | remote: deprecate resolve_url callbackethomson/custom_urlEdward Thomson2021-08-291-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using a callback to set a resolve_url is not particularly idiomatic. Deprecate it in favor of the `set_instance_url` and `set_instance_pushurl` functions which can now be called from the `git_remote_ready_cb` callback.
| * | | | | | remote: introduce git_remote_ready_cbEdward Thomson2021-08-291-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new callback that fires when the remote is ready to connect.
| * | | | | | remote: introduce set_instance_urlEdward Thomson2021-08-271-0/+32
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-293-15/+9
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | opts: test GIT_OPT_SET_SSL_CERT_LOCATIONS
| * | | | | mbedTLS: Fix setting certificate directoryethomson/custom_cert_locationsZachary Michaels2021-08-293-15/+9
| |/ / / / | | | | | | | | | | | | | | | fixes #6003
* | | | | Merge pull request #5841 from J0Nes90/features/checkout-dry-runEdward Thomson2021-08-291-0/+3
|\ \ \ \ \ | | | | | | | | | | | | Checkout dry-run
| * | | | | implement GIT_CHECKOUT_DRY_RUN to allow notifications without touching the ↵Jochen Hunz2021-04-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | working directory
* | | | | | Merge pull request #5405 from lhchavez/multi-pack-index-odb-writeEdward Thomson2021-08-292-5/+108
|\ \ \ \ \ \ | | | | | | | | | | | | | | midx: Introduce git_odb_write_multi_pack_index()
| * \ \ \ \ \ Merge branch 'main' into multi-pack-index-odb-writeEdward Thomson2021-08-296-103/+149
| |\ \ \ \ \ \
| * | | | | | | midx: Introduce git_odb_write_multi_pack_index()lhchavez2021-08-272-5/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-274-0/+500
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-297-17/+18
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | Use error code GIT_EAUTH for authentication failures
| * | | | | | Merge branch 'main' into http-use-eauthEdward Thomson2021-08-29230-5762/+11464
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | |
| * | | | | | transports: use GIT_EAUTH for authentication failuresJosh Bleecher Snyder2020-02-077-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | Merge pull request #5404 from lhchavez/multi-pack-index-writeEdward Thomson2021-08-294-0/+500
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | midx: Add a way to write multi-pack-index files
| * | | | | | Merge remote-tracking branch 'origin/main' into multi-pack-index-writelhchavez2021-08-2749-468/+1643
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | |
| * | | | | | Review feedbacklhchavez2021-08-273-19/+25
| | | | | | |
| * | | | | | midx: Add a way to write multi-pack-index fileslhchavez2021-07-264-0/+494
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #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-274-52/+109
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Homogenize semantics for atomic-related functions
| * | | | | | | | Homogenize semantics for atomic-related functionslhchavez2021-08-264-52/+109
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | 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-261-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specified, attempt 2
* | | | | | | | Revert "Merge pull request #5775 from libgit2/ethomson/clone_branch"Alexander Ovchinnikov2021-08-261-42/+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