- 20 Apr, 2021 1 commit
-
-
This is pretty useful in avoiding races: I want to create a ref only if it doesn't already exist. I can't check first because of TOCTOU -- by the time I finish the check, someone else might have already created the ref. And I can't take a lock because then I can't do the create, since the create expects to take the lock. The semantics are inspired by git update-ref, which allows an all-zero old value to mean that the ref must not exist.
David Turner committed
-
- 13 Apr, 2021 5 commits
-
-
repo: remove an inappropriate use of PASSTHROUGH
Edward Thomson committed -
repo: specify init.defaultbranch is meant to be a branch name
Edward Thomson committed -
tests: fix variable name in list.c
Edward Thomson committed -
Fix diff_entrycount -> diff_num_deltas doc typo
Edward Thomson committed -
This just fixes a typo in the documentation, actual rename change was done in 5f69a31f
Marco Sirabella committed
-
- 11 Apr, 2021 3 commits
-
-
Tobias Nießen committed
-
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.
Carlos Martín Nieto committed -
This error code is for callbacks where we should act as though the callback was not set. This is not something that makes sense for a `_foreach` and checking for that error message to bubble up mostly is happenstance precisely because this is not an error code we expect in the callback. As part of removing this, let's also remove a use of foreach as we can open-code this check.
Carlos Martín Nieto committed
-
- 02 Apr, 2021 1 commit
-
-
Default to GIT_BRANCH_DEFAULT if init.defaultBranch is empty string
Edward Thomson committed
-
- 01 Apr, 2021 1 commit
-
-
We already do this in repo_init_head
Ian Hattendorf committed
-
- 20 Mar, 2021 1 commit
-
-
Remove duplicate line, in example code
Edward Thomson committed
-
- 17 Mar, 2021 1 commit
-
-
punkymaniac committed
-
- 10 Mar, 2021 2 commits
-
-
tree: deprecate `git_treebuilder_write_with_buffer`
Edward Thomson committed -
winhttp: skip certificate check if unable to send request
Edward Thomson committed
-
- 04 Mar, 2021 7 commits
-
-
[skip ci]
Edward Thomson committed -
commit-graph: Introduce `git_commit_graph_needs_refresh()`
Edward Thomson committed -
commit-graph: Support lookups of entries in a commit-graph
Edward Thomson committed -
Edward Thomson committed
-
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.
Edward Thomson committed -
merge: Check insert_head_ids error in create_virtual_base
Edward Thomson committed -
Check git_signature_dup failure
Edward Thomson committed
-
- 03 Mar, 2021 2 commits
- 02 Mar, 2021 1 commit
-
-
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.
Ian Hattendorf committed
-
- 01 Mar, 2021 1 commit
-
-
Ian Hattendorf committed
-
- 28 Feb, 2021 3 commits
-
-
Fix some typos
Edward Thomson committed -
include: fix typos in comments
Edward Thomson committed -
Fix documentation formating on repository.h
Edward Thomson committed
-
- 22 Feb, 2021 2 commits
-
-
Tobias Nießen committed
-
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.
punkymaniac committed
-
- 21 Feb, 2021 1 commit
-
-
index: Check git_vector_dup error in write_entries
Edward Thomson committed
-
- 19 Feb, 2021 1 commit
-
-
This is for extra safety within write_entries
panda committed
-
- 18 Feb, 2021 1 commit
-
-
Edward Thomson committed
-
- 17 Feb, 2021 2 commits
- 15 Feb, 2021 2 commits
-
-
Aaron Franke committed
-
Invert the workflow conditionals so that a workflow_dispatch event acts like an on: push build.
Edward Thomson committed
-
- 11 Feb, 2021 2 commits
-
-
Add new bindings for the R language
Edward Thomson committed -
Jeroen Ooms committed
-