| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
Maint fixes for ssl initing and ssh exposure
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This lets a user decide they do want to use keyboard-interactive after
they've compiled.
|
| | | |_|/ /
| | |/| | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When linking against libssh2, create the transport.h such that it
contains its definition for custom crypto and keyboard-interactive
callbacks.
If we don't link against libssh2, create an equivalent signature which
has void pointers instead of pointers to libssh2 structures.
This would be one way to fix #2438.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
As git_clone now has callbacks to configure the details of the
repository and remote, remove the lower-level functions from the public
API, as they lack some of the logic from git_clone proper.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Analogously to the remote creation callback, provide a way for the user
of git_clone() to create the repository with whichever options they
desire via callback.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
git_remote_set_transport now takes a transport factory rather than a transport
git_clone_options now allows the caller to specify a remote creation callback
|
| | | | | | |
|
| |\ \ \ \ \
| | |/ / / /
| |/| | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
If the user wants to keep a copy for themselves, they should make a
copy. It adds unnecessary complexity to make sure the returned entries
are valid until the builder is cleared.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Finding a filename in a vector means we need to resort it every time we
want to read from it, which includes every time we want to write to it
as well, as we want to find duplicate keys.
A hash-map fits what we want to do much more accurately, as we do not
care about sorting, but just the particular filename.
We still keep removed entries around, as the interface let you assume
they were going to be around until the treebuilder is cleared or freed,
but in this case that involves an append to a vector in the filter case,
which can now fail.
The only time we care about sorting is when we write out the tree, so
let's make that the only time we do any sorting.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Since each cred defines the username on their own, introduce
git_cred__username to retrieve the username pointer from them.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This exists as ssh needs to know about the username to use before it can
query for the supported authentication methods.
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
Introduce this error code to signal an authentication failure.
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Add docs for git_clone_local_t and move the docs for the
git_clone_options to each field.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Bump library version to 0.21.0 and SONAME to 21
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Since the SOVERSION doesn't need to follow the library's version and
simply needs to be monotonically increasing whenever we release
something that breaks the ABI, we can set some number and allow multiple
versions of the library to be installed side-by-side.
We start here with the minor version as that's what we release for now,
and it allows to backport this change to earlier versions.
|
| | | |
| | | |
| | | |
| | | | |
This was a bad idea. Don't free except in the free function.
|
| |/ /
|/| |
| | |
| | |
| | |
| | | |
There is no reason why we need to use a callback here. A string array
fits better with the usage, as this is not an event and we don't need
anything from the user.
|
| | |
| | |
| | |
| | |
| | |
| | | |
The documentation has shown this as a single enum for a long time. These
should in fact be two enums. One with the bits for the flags and another
with the bits for the extended flags.
|
| | |
| | |
| | |
| | |
| | | |
These are some issues I found while playing around with the new parser
for docurium.
|
|\ \ \
| | | |
| | | | |
Local clone
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If requested, git_clone_local_into() will try to link the object files
instead of copying them.
This only works on non-Windows (since it doesn't have this) when both
are on the same filesystem (which are unix semantics).
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When git is given such a path, it will perform a "local clone",
bypassing the git-aware protocol and simply copying over all objects
that exist in the source.
Copy this behaviour when given a local path.
|
| | | |
| | | |
| | | | |
filter.h tells me that we check the first 8000 bytes.
|
| | | | |
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
git_merge_analysis will now return GIT_MERGE_CONFIG_NO_FASTFORWARD
when merge.ff=false and GIT_MERGE_CONFIG_FASTFORWARD_ONLY when
merge.ff=true
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
If the remote supports the symref protocol extension, then we return
that, otherwise we guess with git's rules.
|
| | |
| | |
| | |
| | |
| | | |
Add a symref_target field to git_remote_head to expose the symref
mappings to the user.
|
| | |
| | |
| | |
| | |
| | | |
The comment char is configurable and we need to provide a way for the
user to specify which comment char they chose for their message.
|
|\ \ \
| |/ /
|/| | |
Remote deletion
|
| |/ |
|
| | |
|
|\ \
| | |
| | | |
Configuration snapshotting
|
| | |
| | |
| | |
| | |
| | |
| | | |
Accessing the repository's config and immediately taking a snapshot of
it is a common operation, so let's provide a convenience function for
it.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
With the isolation of complex reads, we can now try to refresh the
on-disk file before reading a value from it.
This changes the semantics a bit, as before we could be sure that a
string we got from the configuration was valid until we wrote or
refreshed. This is no longer the case, as a read can also invalidate the
pointer.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In order to have consistent views of the config files for remotes,
submodules et al. and a configuration that represents what is currently
stored on-disk, we need a way to provide a view of the configuration
that does not change.
The goal here is to provide the snapshotting part by creating a
read-only copy of the state of the configuration at a particular point
in time, which does not change when a repository's main config changes.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Diff and status do not want core.safecrlf to actually raise an
error regardless of the setting, so this extends the filter API
with an additional options flags parameter and adds a flag so that
filters can be applied with GIT_FILTER_OPT_ALLOW_UNSAFE, indicating
that unsafe filter application should be downgraded from a failure
to a warning.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Reduce excessive OID calculation for diff and stat
|
| | | |
| | | |
| | | |
| | | |
| | | | |
There were a couple of "init_opts()" functions a few more cases
of structure initialization that I somehow missed.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Use an unsigned int for the version and add a helper macro so the
code is simplified (and so the error message is a common string).
|