| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`oid_strlen` has meant one more than the length of the string.
This is mighty confusing. Make it mean only the string length!
Whomsoever needs to allocate a buffer to hold a string can null
terminate it like normal.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Handle prefixes (in terms of number of path components) for patch
parsing.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When a text file is added or deleted, use the file names from the
`diff --git` header instead of the `---` or `+++` lines. This is
for compatibility with git.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
We may have parsed binary data, set the `SHOW_BINARY` flag which
indicates that we have actually computed a binary diff.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Now that `git_diff_delta` data can be produced by reading patch
file data, which may have an abbreviated oid, allow consumers to
know that the id is abbreviated.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
| | | | |
|
| | | | |
|