| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
The basic structure of each function is courtesy of arrbee.
|
|\
| |
| | |
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.
|
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
|\ \ \
| |/ /
|/| | |
BUGFIX - Fetching twice from the same remote causes a segfault
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | | |
negotiate_fetch access violation
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- added MSVC cmake definitions to disable warnings
- general.c is rewritten so it is ansi-c compatible and compiles ok on microsoft windows
- some MSVC reported warning fixes
|
| | | | |
|
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | | |
Do not allow git_branch_create() to force update branch
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This adds `git_diff_buffers` and `git_patch_from_buffers`. This
also includes a bunch of internal refactoring to increase the
shared code between these functions and the blob-to-blob and
blob-to-buffer APIs, as well as some higher level assert helpers
in the tests to also remove redundancy.
|
|\ \ \ \
| |_|/ /
|/| | | |
Blame first-parent history
|
| | | |
| | | |
| | | |
| | | | |
Also, correct test case to account for the boundary flag
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Move system directory cache out of utils
|
| | | | | |
|
| | | | | |
|
|/ / / / |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Make GIT_INLINE an internal definition so it cannot be used in
public headers
* Fix language in CONTRIBUTING
* Make index caps API use signed instead of unsigned values
|
| | | | |
|
| | | | |
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On some systems, notably HP PA-RISC systems running Linux or HP-UX,
EWOULDBLOCK and EAGAIN are not the same value. POSIX (and these OSes) allow
EWOULDBLOCK to occur on write(2) (and send(2), etc.), so check explicitly
for this case as well as EAGAIN by defining and using a macro GIT_ISBLOCKED
that considers both.
The macro is necessary because MSYS does not provide EWOULDBLOCK and
compilation fails if an attempt is made to use it unconditionally. On most
systems, where the two values are the same, the compiler will simply
optimize this check out and it will have no effect.
|
| | |
| | |
| | |
| | | |
Core git performs no conversion on systems that use LF, emulate that.
|
|\ \ \
| | | |
| | | | |
Handle `core.autocrlf=input` when checking out
|
| | |/
| |/| |
|
| | |
| | |
| | |
| | |
| | | |
Keep the reflog parameters as the last two, as they're the optional
parameters.
|
|/ /
| |
| |
| |
| | |
This addresses arrbee's concerns about wording in the conditional
reference udpate functions.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds an API to amend an existing commit, basically a shorthand
for creating a new commit filling in missing parameters from the
values of an existing commit. As part of this, I also added a new
"sys" API to create a commit using a callback to get the parents.
This allowed me to rewrite all the other commit creation APIs so
that temporary allocations are no longer needed.
|
|\ \
| | |
| | | |
More reflogness
|
| | | |
|
| |\ \ |
|
| | | | |
|
| | | |
| | | |
| | | | |
Also added a test for git_remote_fetch.
|