| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The user may decide to return any type of credential, including ones we
did not say we support. Add a check to make sure the user returned an
object of the right type and error out if not.
|
| |
|
|\
| |
| | |
Fix build on mingw (master branch)
|
| |
| |
| |
| | |
It's currently required in src/openssl_stream.c only.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Windows headers #define some names that openssl uses too. Openssl
headers #undef the offending names before reusing them. But if those
offending Windows headers get included after the openssl headers the
namespace is polluted and nothing good happens.
Fixes issue #2850.
|
| |
| |
| |
| | |
This mainly concerns mingw build.
|
|\ \
| | |
| | | |
stash: correctly stash wd modified/index deleted
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
We want to use the "checkout: moving from ..." message in order to let
git know when a change of branch has happened. Make the convenience
functions for this goal write this message.
|
| | |
| | |
| | |
| | | |
We always use "update by push".
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This namespace is about behaving like git's branch command, so let's do
exactly that instead of taking a reflog message.
This override is still available via the reference namespace.
|
| | |
| | |
| | |
| | |
| | | |
This function is meant to simulate what git does in the reset command,
so we should include the reflog message in that.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The signature for the reflog is not something which changes
dynamically. Almost all uses will be NULL, since we want for the
repository's default identity to be used, making it noise.
In order to allow for changing the identity, we instead provide
git_repository_set_ident() and git_repository_ident() which allow a user
to override the choice of signature.
|
|\ \ \
| | | |
| | | | |
Allow checkout to handle newly cloned repositories, remove `GIT_CHECKOUT_SAFE_CREATE`
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When the repository does not contain an index, emulate git's behavior
and upgrade to `SAFE_CREATE`. This allows us to check out repositories
created with `git clone --no-checkout`.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
We want to ignore GIT_ENOTFOUND, but for that we need to capture the
error code from the reflog deletion.
|
|\ \ \ \
| | | | |
| | | | | |
git_branch_delete() should ignore errors from non-existing reflogs
|
| | |_|/
| |/| | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Win32 DLLs have four fields for the version number (major, minor,
teeny, patch). If a consumer wants to build a custom DLL, it may
be useful to set the patchlevel version number in the DLL.
This value only affects the DLL version number, it does not affect
the resultant "version number", which remains major.minor.teeny.
|
|/ / |
|
| | |
|
|\ \
| | |
| | | |
Fix race in git_packfile_unpack.
|
| |/
| |
| |
| |
| |
| | |
Increment refcount of newly added cache entries just like existing
entries looked up from the cache. Otherwise the new entry can be
evicted from the cache and destroyed while it's still in use.
|
| | |
|
| |
| |
| |
| |
| | |
Refactor `git_filter_list__load_with_attr_reader` into
`git_filter_list__load_ext`, which takes a `git_filter_options`.
|
| |
| |
| |
| |
| | |
For consistency with the rest of the library, where an opt is an
options *structure*.
|
| |
| |
| |
| |
| |
| | |
Provide a convenience function that creates a buffer that can be provided
to callers but will not be freed via `git_buf_free`, so the buffer
creator maintains the allocation lifecycle of the buffer's contents.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Let the filters use the checkout data's temporary buffer, instead
of having to allocate new buffers each time.
|
| |
| |
| |
| | |
Use the new streaming filter API during checkout.
|
| |
| |
| |
| |
| | |
Migrate the `git_filter_list_apply_*` functions over to using the
new filter streams.
|
| |
| |
| |
| |
| |
| |
| | |
Add structures and preliminary functions to take a buffer, file or
blob and write the contents in chunks through an arbitrary number
of chained filters, finally writing into a user-provided function
accept the contents.
|
| |
| |
| |
| |
| | |
Without this change, compiling with gcc and pedantic generates warning:
ISO C does not allow extra ‘;’ outside of a function.
|
|\ \
| | |
| | | |
merge: lock index during the merge (not just checkout)
|
| | |
| | |
| | |
| | |
| | | |
Provide git_indexwriter_init_for_operation for the common locking
pattern in merge, rebase, revert and cherry-pick.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Always lock the index when we begin the merge, before we write
any of the metdata files. This prevents a race where another
client may run a commit after we have written the MERGE_HEAD but
before we have updated the index, which will produce a merge
commit that is treesame to one parent. The merge will finish and
update the index and the resultant commit would not be a merge at
all.
|
| | | |
|
| |/
| |
| |
| |
| |
| | |
Introduce `git_indexwriter`, to allow us to lock the index while
performing additional operations, then complete the write (or abort,
unlocking the index).
|
|\ \
| | |
| | | |
allocations: test for overflow of requested size
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
gcc and clang support __builtin_add_overflow, use it whenever
possible, falling back to our naive routines.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Make our overflow checking look more like gcc and clang's, so that
we can substitute it out with the compiler instrinsics on platforms
that support it. This means dropping the ability to pass `NULL` as
an out parameter.
As a result, the macros also get updated to reflect this as well.
|
| | |
| | |
| | |
| | |
| | | |
https://github.com/attractivechaos/klib/pull/42/files introduces
`kreallocarray`. Hook that up as our `git__reallocarray`.
|
| | | |
|