summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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 #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
| * | | | clone: set refs/remotes/origin/HEAD when branch is specifiedethomson/clone_branchEdward Thomson2021-01-072-21/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a branch is specified to check out in clone, update the remote tracking `HEAD` to point to it. This mimics git's behavior, when `git clone -b <name>` is used.
* | | | | Merge pull request #5769 from lhchavez/pwrite-preadEdward Thomson2021-01-073-11/+3
|\ \ \ \ \ | | | | | | | | | | | | Use `p_pwrite`/`p_pread` consistently throughout the codebase
| * | | | | Use `p_pwrite`/`p_pread` consistently throughout the codebaselhchavez2021-01-073-11/+3
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | This change stops using the seek+read/write combo to perform I/O with an offset, since this is faster by one system call (and also more atomic and therefore safer).
* | | | | Merge pull request #5772 from libgit2/ethomson/readmeEdward Thomson2021-01-071-0/+23
|\ \ \ \ \ | | | | | | | | | | | | README: instructions for using libgit2 without compiling
| * | | | | README: instructions for using libgit2 without compilingethomson/readmeEdward Thomson2021-01-071-0/+23
| | |/ / / | |/| | |
* | | | | Merge pull request #5770 from libgit2/ethomson/empty_default_branchEdward Thomson2021-01-074-1/+57
|\ \ \ \ \ | |_|/ / / |/| | | | Cope with empty default branch
| * | | | repo: ignore empty init.defaultbranchethomson/empty_default_branchEdward Thomson2021-01-072-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The init.defaultbranch option may be set, but empty. In this case, we should ignore it instead of trying to set our default branch to `refs/heads/`.
| * | | | remote: don't update invalid refsEdward Thomson2021-01-071-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | If a symbolic reference points to something invalid, then do not try to update it.
| * | | | fetch: test when HEAD points to nonexistent branchEdward Thomson2021-01-071-0/+29
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | When HEAD points to a nonexistent or invalid branch - for example, to `refs/heads/` - the fetch should be permitted to continue, but we should not use it when creating the `for merge` option in the FETCH_HEAD file. (This emulates git's behavior.)
* | | | Merge pull request #5771 from lhchavez/fix-ciEdward Thomson2021-01-072-5/+5
|\ \ \ \ | |/ / / |/| | | github-actions: Also rename the main branch here
| * | | github-actions: Also rename the main branch herelhchavez2021-01-072-5/+5
|/ / / | | | | | | | | | This should fix the CI.
* | | Merge pull request #5760 from libgit2/ethomson/tttoo_many_tttsEdward Thomson2021-01-074-6/+9
|\ \ \ | | | | | | | | blob: fix name of `GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`
| * | | blob: fix name of `GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`ethomson/tttoo_many_tttsEdward Thomson2021-01-054-6/+9
| |/ / | | | | | | | | | | | | | | | `GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD` is misspelled, it should be `GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`, and it would be if it were not for the MacBook Pro keyboard and my inattentiveness.
* | | Merge pull request #5759 from JoshuaS3/mastermasterEdward Thomson2021-01-063-0/+30
|\ \ \ | |/ / |/| | Add documentation for git_blob_filter_options.version
| * | Update documentation for git_blob_filter_optionsJosh Stockin2021-01-051-1/+2
| | | | | | | | | | | | Adds info about initializing options with git_blob_filter_options_init
| * | blob: add git_blob_filter_options_initEdward Thomson2021-01-053-0/+26
| | | | | | | | | | | | | | | | | | The `git_blob_filter_options_init` function should be included, to allow callers in FFI environments to let us initialize an options structure for them.
| * | Fix documentation for git_blob_filter_optionsJosh Stockin2021-01-041-1/+1
| | |
| * | Move doc comment about `GIT_BLOB_FILTER_OPTIONS_VERSION`Josh Stockin2021-01-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes doc comment on `git_blob_filter_options.version`, moves information to `git_blob_filter_options` doc comment to remain consistent with other options structures' documentation. `git_blob_filter_options_init` still needed; should be added in another commit/PR (it's out of the scope of this PR, #5759), update this documentation again.
| * | Add documentation for git_blob_filter_options.versionJosh Stockin2021-01-031-0/+1
| | | | | | | | | | | | Resolves #5756
* | | Merge pull request #5583 from 0xdky/dhruva/build-with-nommapEdward Thomson2021-01-056-9/+152
|\ \ \ | | | | | | | | Build with NO_MMAP
| * | | Add github action to build and test with mmap emulationDhruva Krishnamurthy2020-12-301-0/+20
| | | |
| * | | Support build with NO_MMAP to disable use of system mmapDhruva Krishnamurthy2020-12-305-5/+127
| | | | | | | | | | | | | | | | | | | | * Use pread/pwrite to avoid updating position in file descriptor * Emulate missing pread/pwrite on win32 using overlapped file IO
| * | | Remove broken support for write in emulated mmapDhruva Krishnamurthy2020-12-271-5/+6
| |/ / | | | | | | | | | | | | | | | | | | * Emulated mmap based write without pagefault handling is not possible since IO happens outside of call to mmap and data is written to mapped memory * Potential emulation using userfaultfd() might be possible
* | | Merge pull request #5748 from lhchavez/chromium-zlibEdward Thomson2021-01-053-3/+115
|\ \ \ | |/ / |/| | zlib: Add support for building with Chromium's zlib implementation