| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
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.
|
| |\
| |
| |
| |
| | |
ianhattendorf/fix/repo-is-empty-empty-config-defaultbranch
Default to GIT_BRANCH_DEFAULT if init.defaultBranch is empty string
|
| |/
|
|
| |
We already do this in repo_init_head
|
| |\
| |
| | |
Remove duplicate line, in example code
|
| |/ |
|
| |\
| |
| | |
tree: deprecate `git_treebuilder_write_with_buffer`
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | | |
winhttp: skip certificate check if unable to send request
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
[skip ci]
|
| |\ \ \
| | | |
| | | | |
commit-graph: Introduce `git_commit_graph_needs_refresh()`
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \ \
| |/ / /
| | | | |
commit-graph: Support lookups of entries in a commit-graph
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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: Check insert_head_ids error in create_virtual_base
|
| | | | | |
| | | | |
| | | | |
| | | | | |
insert_head_ids can fail due to allocation error
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | | |
Check git_signature_dup failure
|
| | |/ / /
| | | |
| | | |
| | | | |
git_signature_dup can have an allocation failure
|
| |\ \ \ \
| | | | |
| | | | | |
Fix some typos
|
| | |/ / / |
|
| |\ \ \ \
| | | | |
| | | | | |
include: fix typos in comments
|
| | | |_|/
| |/| | |
|
| |\ \ \ \
| |/ / /
|/| | | |
Fix documentation formating on repository.h
|
| |/ / /
| | |
| | |
| | |
| | |
| | | |
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.
|
| |\ \ \
| | | |
| | | | |
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
|