Much of the SSH credential creation API can be left enabled even
on platforms with no SSH support. We really just have to give an
error when you attempt to open the SSH connection.
The diff hunk context string that is returned to xdiff need not
be NUL terminated because the xdiff code just copies the number of
bytes that you report directly into the output. There was an off
by one in the diff driver code when the header context was longer
than the output buffer size, the output buffer length included
the NUL byte which was copied into the hunk header.
Fixes#1710
This option serves no benefit now that the git_status_list API
is available. It was of questionable value before and now it
would just be a bad idea to use it rather than the indexed API.
The index isn't really thread safe for the most part, but we can
easily be more careful and avoid double frees and the like, which
are serious problems (as opposed to a lookup which might return
the incorrect value but if the index in being updated, that is
much harder to avoid).
* tag 'upstream/0.19.0': (384 commits)
libgit2 v0.19.0 "gut merge"
test-rename: This is not a decimal, silly
Fix a leak in the local transport code.
Fix checkout tests on Windows
Work around reparse point stat issues
Fixed most documentation header bugs
Add O_CLOEXEC to open calls
Constrain mkdir calls to avoid extra mkdirs
Do not redefine WC_ERR_INVALID_CHARS
Addition checkout target directory tests
Loosen ensure_not_bare rules in checkout
Add target directory to checkout
Fix checkout of modified file when missing from wd
test asserting checkout should not recreate deleted files
Add test for fixed diff bug
Fix comment and copyright in example
Add example implementation of long format status
Add status flags to force output sort order
Initial implementation of status example
Fix bug in diff untracked dir scan
...
* tag 'upstream/0.18.0': (1629 commits)
libgit2 0.18.0 "Big Ben"
Fix examples
remote: don't try to update FETCH_HEAD if no extra heads exist
Update docs
git_revision -> git_revspec
Is this crazy?
Allow git_remote_ls after disconnecting from the remote
Clean up minor details
Clean up example code.
Change git_revparse to output git_object pointers
Redeploy git_revparse_single.
Reintroduce git_revparse_single.
refdb tests: use the right variable size
Fix compilation on OpenBSD
commit: correctly detect the start of the commit message
dec refcount on refdb instead of always freeing
branch: add more upstream configuration management
Notify '*' pathspec correctly when diffing
object: Export git_object_dup
examples: Don't print weird characters
...
In both of these cases, the submodule data should still be loaded
just (obviously) without the data that comes from either the index
or the HEAD.
This fixes a bug in the orphaned head case.
There was a bug where submodules whose HEAD had not been moved
were being marked as having an UNMODIFIED delta record instead
of being left MODIFIED. This fixes that and fixes the tests to
notice if a submodule has been incorrectly marked as UNMODIFIED.
Minor point release! We got a lot of rather large features that we
wanted to get settled in:
- New (threadsafe) cache for objects
- Iterator for Status
- New Merge APIs
- SSH support on *NIX
- Function context on diff
- Namespaces support
- Index add/update/remove with wildcard support
- Iterator for References
- Fetch and push refspecs for Remotes
- Rename support in Status
- New 'sys/` namespace for external headers with low-level APIs
As always, this comes with hundreds of bug fixes and performance
improvements. We're faster and better than ever. And we haven't broken
many APIs this time!
Build stuff.