| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
index: Check git_vector_dup error in write_entries
|
| |
| |
| |
| | |
This is for extra safety within write_entries
|
| |
| |
| |
| | |
If allocating case_sorted.contents fails, git_vector_sort will segfault.
|
|\ \
| |/
|/| |
|
|/
|
|
|
| |
To prevent a race condition, these wlock/rlock calls should probably be checked
for errors.
|
|
|
|
|
| |
Invert the workflow conditionals so that a workflow_dispatch event acts
like an on: push build.
|
|\
| |
| | |
Add new bindings for the R language
|
|/ |
|
|\
| |
| | |
Update .gitignore
|
| |
| |
| | |
Only exclude tags files/folders and build folders at the repository root.
|
|\ \
| | |
| | | |
patch: add owner accessor
|
| | | |
|
|\ \ \
| | | |
| | | | |
commit-graph: Introduce a parser for commit-graph files
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| | | | |
| | | | | |
revspec: rename git_revparse_mode_t to git_revspec_t
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |/ / /
|/| | | |
mwindow: Fix a bug in the LRU window finding code
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
ci: don't use ninja on macOS
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
midx: Fix a bug in `git_midx_needs_refresh()`
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The very last check in the freshness check for the midx was wrong ><
This was also because this function was not tested.
|
|\ \ \ \
| | | | |
| | | | | |
clone: set refs/remotes/origin/HEAD when branch is specified
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Use `p_pwrite`/`p_pread` consistently throughout the codebase
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | | |
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).
|
|\ \ \ \ \
| | | | | |
| | | | | | |
README: instructions for using libgit2 without compiling
|
| | |/ / /
| |/| | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Cope with empty default branch
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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/`.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
If a symbolic reference points to something invalid, then do not try to
update it.
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.)
|
|\ \ \ \
| |/ / /
|/| | | |
github-actions: Also rename the main branch here
|
|/ / /
| | |
| | |
| | | |
This should fix the CI.
|
|\ \ \
| | | |
| | | | |
blob: fix name of `GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
`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.
|
|\ \ \
| |/ /
|/| | |
Add documentation for git_blob_filter_options.version
|
| | |
| | |
| | |
| | | |
Adds info about initializing options with git_blob_filter_options_init
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
Resolves #5756
|
|\ \ \
| | | |
| | | | |
Build with NO_MMAP
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Use pread/pwrite to avoid updating position in file descriptor
* Emulate missing pread/pwrite on win32 using overlapped file IO
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
|\ \ \
| |/ /
|/| | |
zlib: Add support for building with Chromium's zlib implementation
|