| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \
| | | |
| | | | |
Filter relative paths
|
| |/ /
| | |
| | |
| | |
| | | |
Test that filter_list_apply_to_file works and can accept repo-relative
paths.
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Fix crash in git_clone on extremely large repos
|
| |/ |
|
| |
| |
| |
| |
| |
| | |
Clear the error message on git_libgit2_shutdown for all versions of
the library (no threads and Win32 threads). Drop the giterr_clear
in clar, as that shouldn't be necessary.
|
|\ \
| | |
| | | |
Set up git_trace in clar test suite.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
diff_tform: don't compare empty hashsig_heaps
|
| | | |
| | | |
| | | |
| | | |
| | | | |
When comparing seemingly blank files, take whitespace options into
account.
|
| | | |
| | | |
| | | |
| | | | |
Don't try to compare two empty hashsig_heaps.
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
|\ \ \
| | | |
| | | | |
stash: correctly stash wd modified/index deleted
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |_|/ /
|/| | | |
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`.
|
| | |/
| |/| |
|
|/ / |
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
For consistency with the rest of the library, where an opt is an
options *structure*.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Test pushing a file on-disk into a streaming filter that compresses
it into the ODB, and inflates it back into the working directory.
|
| |
| |
| |
| |
| | |
Without this change, compiling with gcc and pedantic generates warning:
ISO C does not allow extra ‘;’ outside of a function.
|
|\ \
| | |
| | | |
merge: lock index during the merge (not just checkout)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Always lock the index when we begin the merge, before we write
any of the metdata files. This prevents a race where another
client may run a commit after we have written the MERGE_HEAD but
before we have updated the index, which will produce a merge
commit that is treesame to one parent. The merge will finish and
update the index and the resultant commit would not be a merge at
all.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Introduce `git_indexwriter`, to allow us to lock the index while
performing additional operations, then complete the write (or abort,
unlocking the index).
|
| |/
| |
| |
| |
| |
| | |
Correct the merge failed cleanup test. Merge data should not be
cleaned up on conflicts, only on actual failure. And ORIG_HEAD
should not be removed at all.
|
|\ \
| | |
| | | |
allocations: test for overflow of requested size
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Make our overflow checking look more like gcc and clang's, so that
we can substitute it out with the compiler instrinsics on platforms
that support it. This means dropping the ability to pass `NULL` as
an out parameter.
As a result, the macros also get updated to reflect this as well.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Have the ALLOC_OVERFLOW testing macros also simply set_oom in the
case where a computation would overflow, so that callers don't
need to.
|
| | |
| | |
| | |
| | |
| | | |
Introduce `git_buf_grow_by` to incrementally increase the size of a
`git_buf`, performing an overflow calculation on the growth.
|
| | |
| | |
| | |
| | |
| | | |
Introduce some helper macros to test integer overflow from arithmetic
and set error message appropriately.
|
| | |
| | |
| | |
| | |
| | | |
Don't require the branch to rebase, if given `NULL`, simply look up
`HEAD`.
|