| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Currently we use the most naïve and inefficient method for figuring out
which objects to send to the remote whereby we end up trying to insert
subdirs which have not changed multiple times.
Instead, make use of the packbuilder's built-in more efficient method
which uses the walk to feed the object list and avoids inserting an
object and its descendants.
|
|
|
|
|
|
|
|
|
|
|
| |
Most use-cases for the object packer communicate in terms of commits
which each side has. We already have an object to specify this
relationship between commits, namely git_revwalk.
By knowing which commits we want to pack and which the other side
already has, we can perform similar optimisations to git, by marking
each tree as interesting or uninteresting only once, and not sending
those trees which we know the other side has.
|
|
|
|
|
|
| |
Keep the definitions in the headers, while putting the declarations in
the C files. Putting the function definitions in headers causes
them to be duplicated if you include two headers with them.
|
|\
| |
| | |
Fixes
|
| | |
|
|\ \
| |/
|/| |
RFC: add mingw to appveyor matrix
|
| | |
|
| |
| |
| |
| | |
these shouldn't be necessary if _WIN32_WINNT >= _WIN32_WINNT_VISTA
|
| |
| |
| |
| | |
should cut down on compiler warnings with mingw
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When we rename a reference, we want the old and new ids to be the same
one (as we did not change it). The normal code path looks up the old id
from the current value of the brtanch, but by the time we look it up, it
does not exist anymore and thus we write a zero id.
Pass the old id explicitly instead.
|
|\ \
| | |
| | | |
Filter relative paths
|
| | | |
|
| |/ |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
Fix crash in git_clone on extremely large repos
|
| | |
|
| | |
|
| |
| |
| |
| | |
Free TLS data on thread exit (win32)
|
| |
| |
| |
| |
| |
| | |
Clear the error message on git_libgit2_shutdown for all versions of
the library (no threads and Win32 threads). Drop the giterr_clear
in clar, as that shouldn't be necessary.
|
| | |
|
|\ \
| | |
| | | |
diff_tform: don't compare empty hashsig_heaps
|
| | |
| | |
| | |
| | |
| | | |
When comparing seemingly blank files, take whitespace options into
account.
|
| | |
| | |
| | |
| | | |
Don't try to compare two empty hashsig_heaps.
|
| | | |
|
|\ \ \
| | | |
| | | | |
http: enforce the credential types
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
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.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This changes the get_entry() method to return a refcounted version of
the config entry, which you have to free when you're done.
This allows us to avoid freeing the memory in which the entry is stored
on a refresh, which may happen at any time for a live config.
For this reason, get_string() has been forbidden on live configs and a
new function get_string_buf() has been added, which stores the string in
a git_buf which the user then owns.
The functions which parse the string value takea advantage of the
borrowing to parse safely and then release the entry.
|
| | |
|
|\ \
| | |
| | | |
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.
|
|/ / |
|