| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| | | |
|
|\ \ \
| | | |
| | | | |
Remove the signature from ref-modifying functions
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |/ / /
|/| | | |
describe example: function to add commits to opts
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add safe function to (a,rea)llocate memory which terminate example on
memory allocation failure.
Move code to allocate commits to its own function.
|
|\ \ \ \
| | | | |
| | | | | |
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: add the patch level to the .dll fileversion
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| | | | |
| | | | | |
Update to clar 2b73f5e
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
rebase: check alloc result
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
README: provide some more explanation about TLS
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Fix MAX 32 bit build problem described in libgit2/libgit2#2917
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Fix race in git_packfile_unpack.
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
Increment refcount of newly added cache entries just like existing
entries looked up from the cache. Otherwise the new entry can be
evicted from the cache and destroyed while it's still in use.
|
|\ \ \
| | | |
| | | | |
Streaming filters
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Introduce GITTEST_INVASIVE_FS_STRUCTURE for things that are invasive
to your filesystem structure (like creating folders at your filesystem
root) and GITTEST_INVASIVE_FS_SIZE for things that write lots of data.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Refactor `git_filter_list__load_with_attr_reader` into
`git_filter_list__load_ext`, which takes a `git_filter_options`.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
For consistency with the rest of the library, where an opt is an
options *structure*.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Provide a convenience function that creates a buffer that can be provided
to callers but will not be freed via `git_buf_free`, so the buffer
creator maintains the allocation lifecycle of the buffer's contents.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Test pushing a file on-disk into a streaming filter that compresses
it into the ODB, and inflates it back into the working directory.
|