| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
The signing callback should not be used; instead, callers should provide
a commit_create_cb, perform the signing and commit creation themselves.
|
|
|
|
|
|
|
| |
Introduce a new mechanism for `git_rebase_commit` for callers to
customize the experience. Instead of assuming that we produce the
commit for them, provide a commit creation callback that allows callers
to produce the commit themselves and return the resulting commit id.
|
|\ |
|
|/ |
|
|\
| |
| | |
WIP: .devcontainer: settings for a codespace workflow
|
| | |
|
| | |
|
| |
| |
| |
| | |
Add devcontainer settings for running within a codespace.
|
|\ \
| | |
| | | |
CMake. hash sha1 header has been added.
|
| | |
| | |
| | | |
Co-authored-by: Edward Thomson <ethomson@github.com>
|
|/ / |
|
|\ \
| | |
| | | |
git_array_alloc: return objects of correct type
|
| | | |
|
|\ \ \
| | | |
| | | | |
Homogenize semantics for atomic-related functions
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
There were some subtle semantic differences between the various
implementations of atomic functions. Now they behave the same, have
tests and are better documented to avoid this from happening again in
the future.
Of note:
* The semantics chosen for `git_atomic_compare_and_swap` match
`InterlockedCompareExchangePointer`/`__sync_cal_compare_and_swap` now.
* The semantics chosen for `git_atomic_add` match
`InterlockedAdd`/`__atomic_add_fetch`.
* `git_atomic_swap` and `git_atomic_load` still have a bit of semantic
difference with the gcc builtins / msvc interlocked operations, since
they require an l-value (not a pointer). If desired, this can be
homogenized.
|
|\ \ \ \
| |/ / /
|/| | | |
Set refs/remotes/origin/HEAD to default branch when branch is specified
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
specified, attempt 2
|
|/ / /
| | |
| | |
| | |
| | | |
This reverts commit 487f2a8287c4d1d41d39e05ac53d0e50c679d7e9, reversing
changes made to c6cf7f0e6927f1b264a7dda2467d70b9f744a01f.
|
|\ \ \
| |/ /
| | | |
array: check dereference from void * type
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
GCC C11 warnings
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of buf->"typeofbuffer"ReparseBuffer the members will be
referenced with buf->ReparseBuffer."typeofbuffer"
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/ns-ntifs-_reparse_data_buffer?redirectedfrom=MSDN
calls the union DUMMYUNIONNAME but that looks a bit cluttered.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Introduce GIT_WARN_UNUSED_RESULT
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously, the location of `GIT_WARN_UNUSED_RESULT` was causing it to
be included _after_ a bunch of other headers (namely `src/vector.h`),
which broke the build.
This change does two things:
* Moves the `GIT_WARN_UNUSED_RESULT` above most of the `$include`s in
`src/common.h`.
* Stops including `vector.h` from `src/win32/path_w32.c` since the
header itself does not use it.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Now we're limiting ourselves to only functions that allocate or acquire
locks.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This adds a `-Wunused-result`-proof `GIT_UNUSED()`, just to demonstrate
that it works. With this, sortedcache.h is now completely
`GIT_WARN_UNUSED_RESULT`-annotated!
|
| | |/
| |/|
| | |
| | |
| | | |
This change adds the GIT_WARN_UNUSED_RESULT annotation, which makes the
compiler warn when a return result is not used. This avoids bugs.
|
|\ \ \
| |_|/
|/| | |
open: input validation for empty segments in path
|
| | | |
|
| | | |
|
| |/ |
|
|\ \
| | |
| | | |
C11 warnings
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Dynamically load OpenSSL (optionally)
|
| | |
| | |
| | |
| | |
| | | |
Add Xenial, Bionic, CentOS 7 and 8 workflows with OpenSSL-Dynamic builds
nightly.
|
| | |
| | |
| | |
| | |
| | | |
Defer dlopen until it's needed when dynamically loading OpenSSL
libraries.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
The ntlmclient dependency can now dynamically load OpenSSL.
|
| | |
| | |
| | |
| | |
| | |
| | | |
dlopen sets up some thread-local state that isn't cleaned up by
`dlclose`. Additionally, now that we're linking against different
versions of libssh2 and OpenSSL, we're seeing different leak signatures.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Provide an interface around OpenSSL to dynamically load the libraries
and symbols, so that users can distribute a libgit2 library that is not
linked directly against OpenSSL. This enables users to target multiple
distributions with a single binary.
This mechanism is optional and disabled by default. Configure cmake
with -DUSE_HTTPS=OpenSSL-Dynamic to use it.
|
|/ /
| |
| |
| |
| | |
Refactor the OpenSSL stream implementation so that the legacy code is better
abstracted. This will enable future development.
|