| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When using a bare repo with an index, libgit2 attempts to read
files from the index. It caches those files based on the path
to the file, specifically the path to the directory that contains
the file.
If there is no working directory, we use `git_path_dirname_r` to
get the path to the containing directory. However, for the
`.gitattributes` file in the root of the repository, this ends up
normalizing the containing path to `"."` instead of the empty
string and the lookup the `.gitattributes` data fails.
This adds a test of attribute lookups on bare repos and also
fixes the problem by simply rewriting `"."` to be `""`.
|
|\
| |
| | |
Clean up transport lookup
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It does the same as git_remote_supported_url() but has a name which
implies we'd check the URL for correctness while we're simply looking at
the scheme and looking it up in our lists.
While here, fix up the tests so we check all the combination of what's
supported.
|
|/
|
|
|
|
|
| |
Teach git_repository_init_ext to use relative paths for the gitlink
to the work directory. This is used when creating a sub repository
where the sub repository resides in the parent repository's
.git directory.
|
|\
| |
| | |
merge: expose multiple merge bases
|
| |
| |
| |
| |
| |
| |
| |
| | |
We always calculate multiple merge bases, but up to now we had only
exposed the "best" merge base.
Introduce git_oidarray which analogously to git_strarray lets us return
multiple ids.
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Export `git_oid_tostr_s` instead of `_allocfmt`
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The old `allocfmt` is of no use to callers, as they are not able to free
the returned buffer. Export a new API that returns a static string that
doesn't need to be freed.
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Move the transport registration mechanisms into a new header under
'sys/' because this is advanced stuff.
* Remove the 'priority' argument from the registration as it adds
unnecessary complexity. (Since transports cannot decline to operate,
only the highest priority transport is ever executed.) Users who
require per-priority transports can implement that in their custom
transport themselves.
* Simplify registration further by taking a scheme (eg "http") instead
of a prefix (eg "http://").
|
| |\ \
| | | |
| | | | |
Fix git status list new unreadable folder
|
| | |\ \
| | | |/
| | | |
| | | | |
fix-git-status-list-new-unreadable-folder
|
| | | | |
|
| | |\ \
| | | | |
| | | | |
| | | | | |
fix-git-status-list-new-unreadable-folder
|
| | | | | |
|
| | |\ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
fix-git-status-list-new-unreadable-folder
Conflicts:
include/git2/diff.h
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
and a (failing) test for it.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
And use 0 for GIT_FILEMODE_UNREADABLE.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | |_|_|/
| |/| | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
So that users don’t need to implement binary detection themselves.
|
| |\ \ \ \
| | | | | |
| | | | | | |
ssh: provide a factory function for setting ssh paths
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
git allows you to set which paths to use for the git server programs
when connecting over ssh; and we want to provide something similar.
We do this by providing a factory function which can be set as the
remote's transport callback which will set the given paths upon
creation.
|
| | | | | | |
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixup git_attr_value's comment to be recognised as documentation, and
include the definitions needed for clang to parse reset.h such that
it shows up in the documentation.
This fixes #2430.
|
| | | | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
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
|