| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
No need to replicate the old_file/new_file members, or plumb them
strangely up.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Patches can now come from a variety of sources - either internally
generated (from diffing two commits) or as the results of parsing
some external data.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When we are provided some input buffer (with a length) to inflate,
and it contains more data than simply the deflated data, fail.
zlib will helpfully tell us when it is done reading (via Z_STREAM_END),
so if there is data leftover in the input buffer, fail lest we
continually try to inflate it.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Handle the application of binary patches. Include tests that
produce a binary patch (an in-memory `git_patch` object),
then enusre that the patch applies correctly.
|
| | | |
| | | |
| | | |
| | | | |
Introduce `git_zstream_inflatebuf` for simple uses.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Refactor the git_delta functions to have consistent naming and
parameters with the rest of the library.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Move the delta application functions into `delta.c`, next to the
similar delta creation functions. Make the `git__delta_apply`
functions adhere to other naming and parameter style within the
library.
|
| | | |
| | | |
| | | |
| | | | |
When a patch is empty, simply copy the source into the destination.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The beginnings of patch application from an existing (diff-created)
git_patch object: applies the hunks of a git_patch to a buffer.
|
|\ \ \ \
| |_|/ /
|/| | | |
Improve the README
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Drop node-gitteh. Replace outdated PowerShell bindings with PSGit.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Indicate that if you make changes to libgit2 that you must distribute
the source _to libgit2_, not the source _of your program_.
|
|\ \ \ \
| | | | |
| | | | | |
Cleanups
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Avoid declaring old-style functions without any parameters.
Functions not accepting any parameters should be declared with
`void fn(void)`. See ISO C89 $3.5.4.3.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
cmake: do not use -fPIC for MSYS2
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The MSYS2 build system automatically compiles all code with position-independent
code. When we manually add the -fPIC flag to the compiler flags, MSYS2 will
loudly complain about PIC being the default and thus not required.
Fix the annoyance by stripping -fPIC in MSYS2 enviroments like it is already
done for MinGW.
|
|\ \ \ \
| |/ / /
|/| | | |
Thread namespacing
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The old pthread-file did re-implement the pthreads API with exact symbol
matching. As the thread-abstraction has now been split up between Unix- and
Windows-specific files within the `git_` namespace to avoid symbol-clashes
between libgit2 and pthreads, the rewritten wrappers have nothing to do with
pthreads anymore.
Rename the Windows-specific pthread-files to honor this change.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The function pthread_num_processors_np is currently unused and superseded by the
function `git_online_cpus`. Remove the function.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
Fix truncation of SHA in error message for git_odb_read
|
| | |_|/
| |/| | |
|
|\ \ \ \
| |_|/ /
|/| | | |
HTTP authentication scheme name is case insensitive.
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
checkout: use empty baseline when no index file exists
|
| | | |
| | | |
| | | |
| | | |
| | | | |
When no index file exists and a baseline is not explicitly provided, use
an empty baseline instead of trying to load `HEAD`.
|
|\ \ \ \
| |/ / /
|/| | | |
documentation: improve docs for `checkout_head`
|
| | | |
| | | |
| | | |
| | | |
| | | | |
`git_checkout_head` is sadly misunderstood as something that can
switch branches. It cannot. Update the documentation to reflect this.
|
|\ \ \ \
| |/ / /
|/| | | |
fetch: Fixed spurious update callback for existing tags.
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
Memory leak fixes
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The thread local storage is used to hold some global state that
is dynamically allocated and should be freed upon exit. On
Windows, we clean up the C run-time right after execution of
registered shutdown callbacks and before cleaning up the TLS.
When we clean up the CRT, we also cause it to analyze for memory
leaks. As we did not free the TLS yet this will lead to false
positives.
Fix the issue by first freeing the TLS and cleaning up the CRT
only afterwards.
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
Fix invalid memory references
|