summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* repo: specify init.defaultbranch is meant to be a branch namecmn/branch-or-refCarlos Martín Nieto2021-04-111-1/+1
| | | | | | | We don't want the default branch's refname here but its name as branch. Returning an error saying it's not a valid reference here suggests we want the value of `init.defaultbranch` to be something like `refs/heads/default` which is not the case.
* Merge pull request #5832 from ↵Edward Thomson2021-04-022-2/+16
|\ | | | | | | | | ianhattendorf/fix/repo-is-empty-empty-config-defaultbranch Default to GIT_BRANCH_DEFAULT if init.defaultBranch is empty string
| * Default to GIT_BRANCH_DEFAULT if init.defaultBranch is empty stringIan Hattendorf2021-04-012-2/+16
|/ | | | We already do this in repo_init_head
* Merge pull request #5821 from punkymaniac/example-duplicate-lineEdward Thomson2021-03-201-5/+0
|\ | | | | Remove duplicate line, in example code
| * Remove duplicate line, in example codepunkymaniac2021-03-171-5/+0
|/
* Merge pull request #5815 from libgit2/ethomson/treebuilder_writeEdward Thomson2021-03-105-70/+99
|\ | | | | tree: deprecate `git_treebuilder_write_with_buffer`
| * ci: enable UBSan stacktracesethomson/treebuilder_writeEdward Thomson2021-03-041-0/+4
| |
| * tree: deprecate `git_treebuilder_write_with_buffer`Edward Thomson2021-03-044-70/+95
| | | | | | | | | | | | | | | | | | The function `git_treebuilder_write_with_buffer` is unnecessary; it is used internally as part of treebuilder writing, but it has little use to external callers. For callers that repeatedly write a treebuilder, we can supply them with a buffer in the treebuilder struct instead of recreating it. For ourselves, when we want a single buffer in our write loop, we can use an internal function.
* | Merge pull request #5814 from ianhattendorf/fix/winhttp-proxy-httpsEdward Thomson2021-03-102-27/+67
|\ \ | | | | | | winhttp: skip certificate check if unable to send request
| * | winhttp: skip certificate check if unable to send requestIan Hattendorf2021-03-011-27/+45
| | | | | | | | | | | | | | | | | | | | | | | | In some circumstances (e.g. when proxies are involved), winhttp will fail to reach the WINHTTP_CALLBACK_STATUS_SENDING_REQUEST phase. If this occurs, we'll error with ERROR_WINHTTP_INCORRECT_HANDLE_STATE when attempting to query the server certificate context (see https://docs.microsoft.com/en-us/windows/win32/api/winhttp/nf-winhttp-winhttpsendrequest#remarks). To avoid this, verify that WinHttpSendRequest has reached the WINHTTP_CALLBACK_STATUS_SENDING_REQUEST phase before checking the certificate. Since we're using WinHTTP in synchronous mode, we know for sure that once WinHttpSendRequest returns we've either sent it successfully or not. NOTE: WINHTTP_CALLBACK_STATUS_SENDING_REQUEST appears to be deprecated with no direct replacement. WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE is only available in async mode, and there doesn't appear to be a method of querying this flag outside of the status callback.
| * | winhttp: test proxy https cloneIan Hattendorf2021-03-011-0/+22
| | |
* | | README: it's actually our main branchEdward Thomson2021-03-041-3/+3
| | | | | | | | | | | | [skip ci]
* | | Merge pull request #5764 from lhchavez/cgraph-needs-refreshEdward Thomson2021-03-043-0/+43
|\ \ \ | | | | | | | | commit-graph: Introduce `git_commit_graph_needs_refresh()`
| * | | commit-graph: Introduce `git_commit_graph_needs_refresh()`lhchavez2021-01-103-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces a function that allows the caller to know whether the `commit-graph` file has not been modified since it was parsed. Part of: #5757
* | | | Merge pull request #5763 from lhchavez/cgraph-lookupEdward Thomson2021-03-045-0/+252
|\ \ \ \ | |/ / / | | | | commit-graph: Support lookups of entries in a commit-graph
| * | | commit-graph: Support lookups of entries in a commit-graphlhchavez2021-01-105-0/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces `git_commit_graph_entry_find()` and `git_commit_graph_entry_parent()`. These two functions allow a much faster lookup of commits by ID, since the ODB does not need to be consulted, the commit object does not need to be inflated, and the contents of the commit object do not need to be parsed. Part of: #5757
* | | | Merge pull request #5818 from mamapanda/patch-3Edward Thomson2021-03-041-2/+5
|\ \ \ \ | | | | | | | | | | merge: Check insert_head_ids error in create_virtual_base
| * | | | merge: Check insert_head_ids error in create_virtual_basepanda2021-03-031-2/+5
| | | | | | | | | | | | | | | | | | | | insert_head_ids can fail due to allocation error
* | | | | Merge pull request #5817 from mamapanda/patch-2Edward Thomson2021-03-041-10/+15
|\ \ \ \ \ | |_|_|/ / |/| | | | Check git_signature_dup failure
| * | | | Check git_signature_dup failurepanda2021-03-031-10/+15
| |/ / / | | | | | | | | | | | | git_signature_dup can have an allocation failure
* | | | Merge pull request #5797 from aaronfranke/typosEdward Thomson2021-02-288-11/+11
|\ \ \ \ | | | | | | | | | | Fix some typos
| * | | | Fix some typosAaron Franke2021-02-158-11/+11
| |/ / /
* | | | Merge pull request #5805 from tniessen/include-typosEdward Thomson2021-02-284-6/+6
|\ \ \ \ | | | | | | | | | | include: fix typos in comments
| * | | | include: fix typos in commentsTobias Nießen2021-02-224-6/+6
| | |_|/ | |/| |
* | | | Merge pull request #5806 from punkymaniac/comment-formatEdward Thomson2021-02-281-52/+95
|\ \ \ \ | |/ / / |/| | | Fix documentation formating on repository.h
| * | | Fix documentation formating on repository.hpunkymaniac2021-02-221-52/+95
|/ / / | | | | | | | | | | | | | | | The enum 'git_repository_init_flag_t', 'git_repository_init_mode_t' and the structure 'git_repository_init_options' does not follow the format used by docurium.
* | | Merge pull request #5801 from mamapanda/patch-1Edward Thomson2021-02-211-5/+6
|\ \ \ | | | | | | | | index: Check git_vector_dup error in write_entries
| * | | index: Initialize case_sorted to GIT_VECTOR_INITpanda2021-02-181-5/+4
| | | | | | | | | | | | | | | | This is for extra safety within write_entries
| * | | index: Check git_vector_dup error in write_entriespanda2021-02-161-1/+3
| |/ / | | | | | | | | | If allocating case_sorted.contents fails, git_vector_sort will segfault.
* | | Merge pull request #5800 from mamapanda/check-sortedcache-lockEdward Thomson2021-02-181-2/+4
|\ \ \ | |/ / |/| |
| * | refdb_fs: Check git_sortedcache wlock/rlock errorspanda2021-02-161-2/+4
|/ / | | | | | | | | To prevent a race condition, these wlock/rlock calls should probably be checked for errors.
* | CI: add workflow_dispatch event to the main buildEdward Thomson2021-02-151-4/+5
| | | | | | | | | | Invert the workflow conditionals so that a workflow_dispatch event acts like an on: push build.
* | Merge pull request #5795 from jeroen/patch-1Edward Thomson2021-02-111-0/+1
|\ \ | | | | | | Add new bindings for the R language
| * | Add new bindings for the R languageJeroen Ooms2021-02-111-0/+1
|/ /
* | Merge pull request #5787 from lrm29/patch-1Edward Thomson2021-02-011-2/+2
|\ \ | | | | | | Update .gitignore
| * | Update .gitignoreLaurence McGlashan2021-01-311-2/+2
| | | | | | | | | Only exclude tags files/folders and build folders at the repository root.
* | | Merge pull request #5731 from KOLANICH-libs/owner_accessorEdward Thomson2021-02-012-0/+13
|\ \ \ | | | | | | | | patch: add owner accessor
| * | | patch: add owner accessorJason Haslam2020-12-112-0/+13
| | | |
* | | | Merge pull request #5762 from lhchavez/cgraph-parserEdward Thomson2021-02-01518-0/+466
|\ \ \ \ | | |_|/ | |/| | commit-graph: Introduce a parser for commit-graph files
| * | | commit-graph: Introduce a parser for commit-graph fileslhchavez2021-01-10518-0/+466
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is the first in a series to add support for git's commit-graph. This should speed up commit graph traversals by avoiding object parsing and allowing some operations to terminate earlier. Part of: #5757
* | | | Merge pull request #5786 from libgit2/ethomson/revparseEdward Thomson2021-02-019-30/+51
|\ \ \ \ | | | | | | | | | | revspec: rename git_revparse_mode_t to git_revspec_t
| * | | | revspec: rename git_revparse_mode_t to git_revspec_tethomson/revparseEdward Thomson2021-01-319-30/+51
| | |_|/ | |/| | | | | | | | | | | | | | | | | | The information about the type of a revision spec is not information about the parser. Name it accordingly, so that `git_revparse_mode_t` is now `git_revspec_t`. Deprecate the old name.
* | | | Merge pull request #5783 from lhchavez/mwindow-coverityEdward Thomson2021-02-011-1/+3
|\ \ \ \ | |/ / / |/| | | mwindow: Fix a bug in the LRU window finding code
| * | | mwindow: Fix a bug in the LRU window finding codelhchavez2021-01-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change now updates the `lru_window` variable to match the current file's MRU window. This makes it such that it doesn't always choose the file that happened to come last in the list of window files, and instead should now correctly choose the file with the least-recently-used one.
* | | | meta: tell "linguist" that the test resources are vendoredEdward Thomson2021-01-221-0/+1
|/ / / | | | | | | | | | | | | | | | | | | Our test resources shouldn't count toward our language statistics. We have some PHP checked in to the test resources, but I assure you that we do not have any production code in PHP and we shouldn't be blamed for the test data.
* | | Merge pull request #5780 from libgit2/ethomson/ciEdward Thomson2021-01-153-3/+12
|\ \ \ | | | | | | | | ci: don't use ninja on macOS
| * | | ci: don't use ninja on macOSEdward Thomson2021-01-153-3/+12
|/ / / | | | | | | | | | | | | | | | Ninja is not installed by default on the macOS machines; stop trying to use it. Instead use `make -j` which should be roughly equivalent in performance but supported everywhere.
* | | Merge pull request #5768 from lhchavez/midx-needs-refreshEdward Thomson2021-01-152-1/+2
|\ \ \ | | | | | | | | midx: Fix a bug in `git_midx_needs_refresh()`
| * | | midx: Fix a bug in `git_midx_needs_refresh()`lhchavez2021-01-072-1/+2
| | | | | | | | | | | | | | | | | | | | The very last check in the freshness check for the midx was wrong >< This was also because this function was not tested.
* | | | Merge pull request #5775 from libgit2/ethomson/clone_branchEdward Thomson2021-01-102-21/+50
|\ \ \ \ | | | | | | | | | | clone: set refs/remotes/origin/HEAD when branch is specified