| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This is a try at extending the warning API to include warnings
that would be errors unless the user callback decides to demote
them to warnings. This allows for relaxed parsing logic that will
default to strict behavior but can continue if possible.
|
| |
|
| |
|
|
|
|
|
| |
This is just the initial take. I expect that the API will need
to change quite a bit before we accept it into libgit2.
|
|\
| |
| | |
Update clar to e1990d6
|
|/ |
|
|\
| |
| | |
Rename options structures
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Add a tag example
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fun with memory access
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously the hunk_byfinalline_search_cmp function was called with different
data types (size_t and uint32_t) for the key argument but expected only the
former resulting in an invalid memory access when passed the latter on a 64 bit
machine.
The following patch makes sure that the function is called and works with the
same type (size_t).
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Plug leaks
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We look up a reference in order to figure out if it's the current
branch, which we need to free once we're done with the check.
As a bonus, only perform the check when we're passed the force flag, as
it's a useless check otherwise.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We can make use of git_object_dup to use refcounting instead of pointer
comparison to make sure we don't free the caller's object.
This also lets us simplify the case for '~0' which is now just an
assignment instead of looking up the object we have at hand.
|
|/ / /
| | |
| | |
| | |
| | | |
Combinations of connect + fetch can call local_open multiple
times. Detect this and skip the initialization stage.
|
|\ \ \
| |_|/
|/| | |
Update clar to a0b00f0
|
|/ / |
|
| |
| |
| |
| |
| | |
MSVC doesn't like declaring variables in the middle of a block, so make
sure we only declare variables at the beginning of a block.
|
|\ \
| | |
| | | |
Revert pull request #1997
|
|/ / |
|
|\ \
| | |
| | | |
Fix GIT_MERGE_OPTS_INIT on MSVC.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Function-based options initializers
|
| | | |
| | | |
| | | |
| | | | |
The basic structure of each function is courtesy of arrbee.
|
|\ \ \ \
| |/ / /
|/| | | |
examples/diff:Add the shortstat flag to examples/diff.c
|
| |\ \ \
| |/ / /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | | |
Add ODB API to check for existence by prefix and object id shortener
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This finds a short id string that will unambiguously select the
given object, starting with the core.abbrev length (usually 7)
and growing until it is no longer ambiguous.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
refdb: catch a directory disappearing
|
| | |_|_|/
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
If a directory disappears between the time we look up the entries of its
parent and the time when we go to look at it, we should ignore the error
and move forward.
This fixes #2046.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
ODB writing fails gracefully when unsupported
|
| | | | |
| | | | |
| | | | |
| | | | | |
If no ODB backends support writing, we should fail gracefully.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
examples/diff: Add minimal, patience diff options.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Add minimal, patience diff options to diff example. libgit2
`diff_xdiff.git_xdiff_init` already supports these flags, so
no additional change is necessary.
- Remove minimal and patience flag addition from project list.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Fixed missing error check on call to git_remote_download
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
git_remote_fetch. Moved error check to statement following git_remote_disconnect so that the disconnect happens regardless of the result of the download call.
|
| | | | | |
|
| |_|/ /
|/| | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
pack-objects: free memory safely
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
A few fixes have accumulated in this area which have made the freeing of
data a bit muddy. Make sure to free the data only when needed and once.
When we are going to write a delta to the packfile, we need to free the
data, otherwise leave it. The current version of the code mixes up the
checks for po->data and po->delta_data.
|
|\ \ \ \
| | | | |
| | | | | |
Remove ignored files from the working directory if they were stashed
|
|/ / / / |
|