| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Otherwise docurium/clang chokes on the types, and ignores the documentation comments altogether.
|
|\
| |
| | |
worktree: add functions to get name and path
|
| | |
|
|\ \
| | |
| | | |
Configuration entry iteration in order
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In order to reject writes to included configuration entries, we need to
keep track of whether an entry was included via another configuration
file or not. This information is being stored in the `cvar` structure,
which is a rather weird location, as it is only used to create a list
structure of config entries.
Move the include depth into the structure `git_config_entry` instead.
While this fixes the layering issue, it enables users of libgit2 to
access the depth, too.
|
|\ \ \
| |_|/
|/| | |
worktree: add ability to create worktree with pre-existing branch
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Currently, we always create a new branch after the new worktree's name
when creating a worktree. In some workflows, though, the caller may want
to check out an already existing reference instead of creating a new
one, which is impossible to do right now.
Add a new option `ref` to the options structure for adding worktrees. In
case it is set, a branch and not already checked out by another
worktree, we will re-use this reference instead of creating a new one.
|
|\ \ \
| | | |
| | | | |
remote/proxy: fix git_transport_certificate_check_db description
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Flag options in describe.h as being optional
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The git_describe_options in git_describe_commit and
git_describe_workdir and the git_describe_format_options in
git_describe_format are optional and can be NULL. State this in the
documentation to make people's lives easier when calling these
functions.
Signed-off-by: Remy Suen <remy.suen@gmail.com>
|
|/ / /
| | |
| | | |
`git_merge_result` is currently unused in the codebase and generates a blank page in the [documentation](https://libgit2.github.com/libgit2/#HEAD/type/git_merge_result).
|
| |/
|/|
| | |
As per #4200, our default is quite surprising to users that expect checkout to just "do the thing".
|
|\ \
| | |
| | | |
pathspec: improve git_pathspec_flag_t doc rendering
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
By placing docs per enum value rather than in a large block,
the automated doc generation tool can make nicer docs,
as could other automated tools, such as
the mooted https://github.com/libgit2/git2go/issues/427.
The current rendering is somewhat ugly:
https://libgit2.github.com/libgit2/#HEAD/type/git_pathspec_flag_t
No textual changes, just reorganization.
|
|\ \ \
| | | |
| | | | |
config: specify how we match the regular expressions
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We do it the same as git does: case-sensitively on the normalized form of the
variable name.
While here also specify that we're case-sensitive on the values when handling
the values when setting or deleting multivars.
|
| | | | |
|
| |/ /
|/| | |
|
| | | |
|
| |/
|/|
| |
| |
| | |
The streaming read functionality should provide the length and the type
of the object, like the normal read functionality does.
|
|\ \
| | |
| | | |
Use longer conflict markers in recursive merge base
|
| | |
| | |
| | |
| | |
| | |
| | | |
Allow for a custom conflict marker size, allowing callers to override
the default size of the "<<<<<<<" and ">>>>>>>" markers in the
conflicted output file.
|
|/ /
| |
| |
| | |
Fixes #4492, #4496.
|
| |
| |
| |
| |
| |
| |
| |
| | |
We used to hard-code the octothorpe as the comment character and the
documentation still mentions this even though we accept the comment character as
a parameter.
Update the line to indicate this and clean up the first paragraph a bit.
|
|\ \
| | |
| | | |
Implement message trailer parsing API
|
| | | |
|
| | | |
|
| |\ \ |
|
| | | | |
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is implemented in trailer.c and borrows a large amount of logic
from Git core to ensure compatibility.
|
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
References passed to the callback function of `git_reference_foreach`
are expected to be owned by the callback. As such, they are never being
freed by `git_reference_foreach`, but will have to be freed by the
caller. This small detail is never mentioned in the function's
documentation, though, making it easy to get wrong. Document this to
make it discoverable.
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | | |
The documentation for `git_treebuilder_insert` erroneously states that
we do not validate that the entry being inserted exists. We do, as of
https://github.com/libgit2/libgit2/pull/3633. Update the documentation
to reflect the new reality.
|
|\ \ \
| |/ /
|/| | |
Support using notes via a commit rather than a ref
|
| | |
| | |
| | |
| | | |
This also adds tests for this function.
|
| | |
| | |
| | |
| | | |
This also adds tests for this function.
|
| | |
| | |
| | |
| | | |
This also adds tests for this function.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds a new function that will allow creation of notes without
necessarily updating a particular ref, the notes tree is obtained
from the git_commit object parameter, a new commit object pointing
to the current tip of the notes tree is optionally returned
via the 'note_commit_out' parameter,
optionally the blob id for the note is returned through
the 'note_blob_out' object.
|
|\ \ \
| | | |
| | | | |
Add git_status_file_at
|
| | |/
| |/|
| | |
| | | |
other than HEAD
|
| | |
| | |
| | |
| | |
| | | |
We default to off, but we might want to consider changing `GIT_DIFF_NORMAL` to
include it.
|