summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6061 from libgit2/ethomson/emailEdward Thomson2021-09-202-1/+383
|\ | | | | Introduce `git_email_create`; deprecate `git_diff_format_email`
| * diff: deprecate diff_format_emailethomson/emailEdward Thomson2021-09-181-0/+20
| | | | | | | | `git_diff_format_email` is deprecated in favor of `git_email_create`.
| * email: include renames by defaultEdward Thomson2021-09-181-2/+115
| | | | | | | | | | `git format-patch` includes diffs with rename detection enabled by default when creating emails. Match this behavior.
| * email: include binary diffs by defaultEdward Thomson2021-09-181-0/+53
| | | | | | | | | | `git format-patch` includes binary diffs by default when creating emails. Match this behavior.
| * email: allow `git_diff_commit_as_email` to take 0 as patch indexEdward Thomson2021-09-181-1/+0
| | | | | | | | | | Allow a `0` patch index and `0` patch count; in this case, simply don't display these in the email.
| * email: introduce `git_email_create_from_diff`Edward Thomson2021-09-181-13/+47
| | | | | | | | | | | | | | | | | | Introduce a function to create an email from a diff and multiple inputs about the source of the diff. Creating an email from a diff requires many more inputs, and should be discouraged in favor of building directly from a commit, and is thus in the `sys` namespace.
| * email: introduce `git_email_create_from_commit`Edward Thomson2021-09-181-0/+163
| | | | | | | | | | | | Create `git_email_*` which will encapsulate email creation and application, and `git_email_create_from_commit` in particular, which creates an email for a single commit.
* | Merge branch 'sathieu/patch-1' into mainEdward Thomson2021-09-201-0/+9
|\ \
| * | httpproxy: move empty string test above configEdward Thomson2021-09-201-4/+9
| | | | | | | | | | | | | | | The configuration change will override the environment variable, so the environment variable check needs to come first.
| * | Add test to ensure empty proxy env behaves like unset envMathieu Parent2021-09-141-0/+4
| | | | | | | | | Signed-off-by: Mathieu Parent <math.parent@gmail.com>
* | | win32: ensure content filtering occurs in longpath testEdward Thomson2021-09-201-4/+23
| | |
* | | Merge remote-tracking branch 'mathworks/longpath_filter_bug' into mainEdward Thomson2021-09-201-4/+24
|\ \ \
| * | | Apply suggestions from code reviewLaurence McGlashan2021-09-141-0/+2
| | | | | | | | | | | | Co-authored-by: Edward Thomson <ethomson@github.com>
| * | | Refactor shared code in longpath test.Laurence McGlashan2021-09-141-22/+12
| | | |
| * | | If longpaths is true and filters are enabled, pass git_repository through ↵Laurence McGlashan2021-09-141-0/+28
| |/ / | | | | | | | | | | | | | | | the filtering code to ensure the cached longpath setting is returned. Fixes: #6054
* | | Merge pull request #6058 from mathworks/proxy_config_with_detached_remoteEdward Thomson2021-09-201-1/+41
|\ \ \ | | | | | | | | Allow proxy options when connecting with a detached remote.
| * | | Update formatting.Laurence McGlashan2021-09-161-3/+3
| | | |
| * | | Allow proxy options when connecting with a detached remote.Laurence McGlashan2021-09-161-1/+41
| | |/ | |/|
* | | Add test for revert+rename bug.Colin Stolley2021-09-159-0/+60
|/ /
* | Merge pull request #6031 from libgit2/ethomson/extensionsEdward Thomson2021-09-143-42/+118
|\ \ | | | | | | Support custom git extensions
| * | common: support custom repository extensionsethomson/extensionsEdward Thomson2021-09-042-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow users to specify additional repository extensions that they want to support. For example, callers can specify that they support `preciousObjects` and then may open repositories that support `extensions.preciousObjects`. Similarly, callers may opt out of supporting extensions that the library itself supports.
| * | repo: refactor extensions tests into their own fileEdward Thomson2021-09-032-42/+44
| |/
* | Add test config parsingBasile Henry2021-09-092-0/+12
|/ | | | | This tests parsing a multiline string containing multiple quoted comment chars. See #6019
* remote: refactor proxy detectionEdward Thomson2021-09-013-101/+139
| | | | | | | | | | Update the proxy detection for a remote. 1. Honor `http.<url>.proxy` syntax for a remote's direct URL and parent URLs. 2. Honor an empty configuration URL to override a proxy configuration. Add tests to ensure that configuration specificity is honored.
* url: introduce `git_net_url_matches_pattern_list`Edward Thomson2021-09-011-0/+49
| | | | | | Provide a utility method on a url to determine if it matches any pattern in a comma-separated list, similar to what one would find in `NO_PROXY` environment variables.
* url: introduce `git_net_url_matches_pattern`Edward Thomson2021-09-011-0/+54
| | | | | Provide a method to determine if a given URL matches a host:port pattern like the ones found in `NO_PROXY` environment variables.
* tests: create the network::url test hierarcyEdward Thomson2021-09-013-59/+59
|
* util: introduce `git__strlcmp`Edward Thomson2021-09-011-0/+11
| | | | | | | Introduce a utility function that compares a NUL terminated string to a possibly not-NUL terminated string with length. This is similar to `strncmp` but with an added check to ensure that the lengths match (not just the `size` portion of the two strings).
* Add NO_PROXY env supportMathieu Parent2021-09-012-0/+106
| | | | | | Item 2 of 3 from #4164 Signed-off-by: Mathieu Parent <math.parent@gmail.com>
* Merge branch 'cgraph-write' into mainEdward Thomson2021-08-302-0/+43
|\
| * Merge remote-tracking branch 'origin/main' into cgraph-writelhchavez2021-08-296-10/+245
| |\
| * \ Merge remote-tracking branch 'origin/main' into cgraph-writelhchavez2021-08-2627-49/+336
| |\ \
| * | | Make the defaultable fields defaultablelhchavez2021-08-261-0/+8
| | | | | | | | | | | | | | | | Also, add `git_commit_graph_writer_options_init`!
| * | | commit-graph: Add a way to write commit-graph fileslhchavez2021-07-271-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge pull request #6011 from libgit2/ethomson/filter_applyEdward Thomson2021-08-292-3/+36
|\ \ \ \ | | | | | | | | | | filter: filter drivers stop taking git_buf as user input
| * | | | filter: use streaming filters in testsEdward Thomson2021-08-272-3/+36
| | | | |
* | | | | Merge pull request #6016 from libgit2/ethomson/commit_create_cbEdward Thomson2021-08-291-6/+252
|\ \ \ \ \ | | | | | | | | | | | | Introduce `create_commit_cb`, deprecate `signing_cb`
| * | | | | rebase: deprecate signing_cbethomson/commit_create_cbEdward Thomson2021-08-291-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-292-1/+96
|\ \ \ \ \ \ | | | | | | | | | | | | | | remote: introduce remote_ready_cb, deprecate resolve_url callback
| * | | | | | remote: deprecate resolve_url callbackethomson/custom_urlEdward Thomson2021-08-291-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-292-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new callback that fires when the remote is ready to connect.
| * | | | | | remote: introduce set_instance_urlEdward Thomson2021-08-271-0/+45
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-296-1/+165
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | opts: test GIT_OPT_SET_SSL_CERT_LOCATIONS
| * | | | | opts: test GIT_OPT_SET_SSL_CERT_LOCATIONSEdward Thomson2021-08-296-1/+165
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Include a self-signed certificate for test.libgit2.org:1443 that we can use to verify that GIT_OPT_SET_SSL_CERT_LOCATIONS works.
* | | | | Merge pull request #5841 from J0Nes90/features/checkout-dry-runEdward Thomson2021-08-291-0/+46
|\ \ \ \ \ | | | | | | | | | | | | Checkout dry-run
| * | | | | implement GIT_CHECKOUT_DRY_RUN to allow notifications without touching the ↵Jochen Hunz2021-04-141-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | working directory
* | | | | | Merge branch 'main' into multi-pack-index-odb-writeEdward Thomson2021-08-295-11/+136
|\ \ \ \ \ \
| * \ \ \ \ \ Merge pull request #5404 from lhchavez/multi-pack-index-writeEdward Thomson2021-08-291-0/+30
| |\ \ \ \ \ \ | | |_|/ / / / | |/| | | | | midx: Add a way to write multi-pack-index files
| | * | | | | Merge remote-tracking branch 'origin/main' into multi-pack-index-writelhchavez2021-08-2728-49/+572
| | |\ \ \ \ \ | | | | |_|_|/ | | | |/| | |