| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This returns the GPG signature for a commit and its contents without the
signature block, allowing for the verification of the commit's
signature.
|
|\
| |
| | |
Fix a couple function signatures
|
| | |
|
|/
|
| |
putting `0.` at the start of the line turns it into a numbered list.
|
|\
| |
| | |
Line count overflow in git_blame_hunk and git_blame__entry
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It is not unreasonable to have versioned files with a line count
exceeding 2^16. Upon blaming such files we fail to correctly keep
track of the lines as `git_blame_hunk` stores them in `uint16_t`
fields.
Fix this by converting the line fields of `git_blame_hunk` to
`size_t`. Add test to verify behavior.
|
|\ \
| | |
| | | |
diff: include commit message when formatting patch
|
| | |
| | |
| | |
| | |
| | |
| | | |
When formatting a patch as email we do not include the commit's
message in the formatted patch output. Implement this and add a
test that verifies behavior.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
It is already possible to get a commit's summary with the
`git_commit_summary` function. It is not possible to get the
remaining part of the commit message, that is the commit
message's body.
Fix this by introducing a new function `git_commit_body`.
|
| | |
|
|/
|
|
|
|
| |
This fits with the style for the rest of the project, but more
importantly, makes life easier for bindings authors who auto-generate
code.
|
| |
|
|
|
|
|
| |
Add a simple recursive test - where multiple ancestors exist and
creating a virtual merge base from them would prevent a conflict.
|
| |
|
|
|
|
| |
These are not quite like their plain counterparts and require special handling.
|
|
|
|
|
|
| |
Allow users to set the `git_libgit2_opts` search path for the
`GIT_CONFIG_LEVEL_PROGRAMDATA`. Convert `GIT_CONFIG_LEVEL_PROGRAMDATA`
to `GIT_SYSDIR_PROGRAMDATA` for setting the configuration.
|
|\
| |
| | |
git_index_entry__init_from_stat: set nsec fields in entry stats
|
| |\ |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This allows the application to use their own TLS stream, regardless of
the capabilities of libgit2 itself.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
We should explicitly include the declaration of git_strarray
from "include/git2/sys/transport.h"
|
| | | |
|
|\ \ \
| | | |
| | | | |
inttypes.h is built-in header file since MSVC 2013
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The reason is that the types defined in libgit2's inttypes.h collide with system inttypes.h
3rd party library header files may directly reference MSVC's built-in inttypes.h
Fixes #3476
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
Provide a new merge option, GIT_MERGE_TREE_FAIL_ON_CONFLICT, which
will stop on the first conflict and fail the merge operation with
GIT_EMERGECONFLICT.
|
|\ \ \
| | | |
| | | | |
config: add a ProgramData level
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This is where portable git stores the global configuration which we can
use to adhere to it even though git isn't quite installed on the system.
|
|/ / / |
|
|\ \ \
| |_|/
|/| | |
Preserve modes from a conflict in `git_index_insert`
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When we do not trust the on-disk mode, we use the mode of an existing
index entry. This allows us to preserve executable bits on platforms
that do not honor them on the filesystem.
If there is no stage 0 index entry, also look at conflicts to attempt
to answer this question: prefer the data from the 'ours' side, then
the 'theirs' side before falling back to the common ancestor.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
As refdb and odb backends can be allocated by client code, libgit2
can’t know whether an alternative memory allocator was used, and thus
should not try to call `git__free` on those objects.
Instead, odb and refdb backend implementations must always provide
their own `free` functions to ensure memory gets freed correctly.
|
|\ \
| |/
|/| |
Include custom HTTP headers
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
Find the first index entry matching a prefix.
|
| |
|
|\
| |
| | |
Provide path matching in the iterators (for faster diffs)
|
| | |
|
| |
| |
| |
| |
| | |
Now that non-pathspec matching diffs are implemented at the iterator
level, drop `FILELIST_MATCH`ing.
|
| |
| |
| |
| |
| |
| | |
Document that `GIT_DIFF_PATHSPEC_DISABLE` is not necessarily about
explicit path matching, but also includes matching of directory
names. Enforce this in a test.
|
| | |
|
|\ \
| |/
|/| |
Escape @ in doc comment
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
libgit2 implementations of smart subtransports can simply reach through
the structure, but external implementors cannot.
Add these two functions as a way for the smart subtransports to get the
callbacks as set by the user.
|