| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Our mkdir helper was failing is a parent directory was not
accessible even if the child directory could be created.
This changes the helper to keep trying child directories
even when the parent is unwritable.
|
|\
| |
| | |
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.
|
| |
| |
| |
| | |
This reverts commit 0dc54e149498bbd5de5e5ecc6006f9f5afb6588c.
|
| |
| |
| |
| | |
We don't really use this at all, and it breaks packaging in Windows.
|
| | |
|
| |
| |
| |
| | |
Decode base64-encoded text into a git_buf
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
The online::push::notes test pushes a note but leaves it hanging
around for other tests to stumble across when they're validating
that they're seeing the refs they expect to see. Clean it up on
exit.
|
| | |
|
|\ \
| | |
| | | |
Custom transport: minor cleanups
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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://").
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the check for multiline, we traverse the backslashes from the end
backwards and int the end assert that we haven't gone past the beginning
of the line. We make sure of this in the loop condition, but we also
check in the return value.
However, for certain configurations, a line in a multiline variable
might be empty to aid formatting. In that case, 'end' == 'start', since
we ended up looking at the first char which made it a multiline.
There is no need for the (end > start) check in the return, since the
loop guarantees we won't go further back than the first char in the
line, and we do accept the first char to be the final backslash.
This fixes #2483.
|
|
|
|
|
| |
Git skips entries in directories that are not S_ISDIR, S_ISREG, or
S_ISLNK, so let's make libgit2 do the same thing.
|
|\
| |
| | |
Compatibility/Portability cleanup
|
| | |
|
|\ \
| | |
| | | |
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.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When thees is an unreadable folder, we should still be able
to enumerate status.
|
| |_|_|/ /
|/| | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
When adding new config section, handle config file not ending with LF
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Handle local file:/// paths on Windows
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Windows can't handle a path like `/c:/foo`; when turning file:///
URIs into local paths, we must strip the leading slash.
|
| |_|_|_|/
|/| | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
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.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We used to assume a refspec would only have an asterisk in the middle of
their respective pattern. This has not been a valid assumption for some
time now with git.
Instead of assuming where the asterisk is going to be, change the logic
to treat each pattern as having two halves with a replacement bit in the
middle, where the asterisk is.
|
|\ \ \ \
| | | | |
| | | | | |
Move yield to the tests and enable for FreeBSD
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
Move the definition of git_thread_yield() to the test which needs it and
add the correct definition for it for FreeBSD and derivatives.
Original patch adding FreeBSD and derivatives by @jacquesg.
|
|\ \ \ \
| | | | |
| | | | | |
netops: error out on url without a path
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
In order to connect to a remote server, we need to provide a path to the
repository we're interested in. Consider the lack of path in the url an
error.
|
|\ \ \ \
| | | | |
| | | | | |
Introduce `cl_assert_equal_oid`
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The revwalk::simplify test was not actually tested the values from
the revwalk against the expected. (Further, the expected had two
IDs transposed.)
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
git_checkout_index: checkout other indexes
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
git_checkout_index can now check out other git_index's (that are not
necessarily the repository index). This allows checkout_index to use
the repository's index for stat cache information instead of the index
data being checked out. git_merge and friends now check out their
indexes directly instead of trying to blend it into the running index.
|