| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
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.
|
| |
| |
| |
| |
| | |
This makes the API for commiting or discarding changes the same as for
references.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This lock/unlock pair allows for the cller to lock a configuration file
to avoid concurrent operations.
It also allows for a transactional approach to updating a configuration
file. If multiple updates must be made atomically, they can be done
while the config is locked.
|
|/
|
|
|
|
|
| |
When a configuration file is locked, any updates made to it will be done
to the in-memory copy of the file. This allows for multiple updates to
happen while we hold the lock, preventing races during complex
config-file manipulation.
|
| |
|
|\
| |
| | |
Resolve documentation warnings
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Allow adding a submodule through git_index_add_bypath
|
| | |
| | |
| | |
| | |
| | | |
This is to be returned when the operation which the user asked for is
not possible to do on a directory.
|
|\ \ \
| |_|/
|/| | |
refdb: delete a ref's reflog upon deletion
|
| |/
| |
| |
| |
| |
| | |
Removing a reflog upon ref deletion is something which only some
backends might wish to do. Backends which are database-backed may wish
to archive a reflog, log-based ones may not need to do anything.
|
|/
|
|
|
|
|
|
| |
git_fetch_options was missing from the API docs because it lacked a
documentation comment above the struct declaration.
I used the git_checkout_options docstring as a template.
Also fixes a typo in git_remote_prune_refs (remote, not reamote).
|
| |
|
|\
| |
| | |
filters: custom filters with wildcard attributes
|
| |
| |
| |
| |
| |
| | |
Allow custom filters with wildcard attributes, so that clients
can support some random `filter=foo` in a .gitattributes and look
up the corresponding smudge/clean commands in the configuration file.
|
|\ \
| | |
| | | |
Added git_diff_index_to_index()
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
These functions are available on the public API but don't have any
documentation, so they don't appear on the API reference. Fix that.
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
The function was removed, but its declaration and changelog entry about
its removal were forgotten.
The comment in the test doesn't make any sense as the function doesn't
exist anymore, so get rid of it as well.
|
| | |
|
|\ \
| |/
|/| |
Stash apply: stage new files even when not updating the index
|
| | |
|
|\ \
| |/
|/| |
Rename FALLBACK to UNSPECIFIED
|
| |
| |
| |
| |
| | |
Fallback describes the mechanism, while unspecified explains what the
user is thinking.
|
|\ \
| |/
|/| |
Don't allow growing borrowed buffers
|
| |
| |
| |
| |
| | |
We've been using EINVALIDSPEC for a while to mean this, but that name
is too specific. Introduce this to be more explicit.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We currently recommend using `git_buf_grow` in order to make a buffer
make an owned copy of the memory it points to. This is not behaviour we
should encourage, so remove this recommendation.
The function itself is not changed, as we need to remain compatible, but
it will be changed not to allow usage on borrowed buffers.
|
|\ \
| | |
| | | |
Remove run-time configuration settings from submodules
|
| | |
| | |
| | |
| | |
| | | |
These are not useful anymore, as we don't affect the instance's
configuration.
|
| | |
| | |
| | |
| | |
| | | |
We no longer have any setters which affect an instance, so
`git_submodule_save()` is no longer relevant.
|
| | |
| | |
| | |
| | | |
With this one, we can get rid of the edit_and_save test.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Similarly to the other ones. In this test we copy over testing
`RECURSE_YES` which shows an error in our handling of the `YES` variant
which we may have to port to the rest.
|
| | |
| | |
| | |
| | |
| | | |
Moving on with the removal of runtime-changing variables, the update
setting for a remote is whatever it was when it was looked up.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This lets us specify in the status call which ignore rules we want to
use (optionally falling back to whatever the submodule has in its
configuration).
This removes one of the reasons for having `_set_ignore()` set the value
in-memory. We re-use the `IGNORE_RESET` value for this as it is no
longer relevant but has a similar purpose to `IGNORE_FALLBACK`.
Similarly, we remove `IGNORE_DEFAULT` which does not have use outside of
initializers and move that to fall back to the configuration as well.
|
| | |
| | |
| | |
| | |
| | |
| | | |
As submodules are becomes more like values, we should not let a status
check to update its properties. Instead of taking a submodule, have
status take a repo and submodule name.
|
| | |
| | |
| | |
| | |
| | | |
Instead of affecting a particular instance, make it change the
configuration.
|
| | |
| | |
| | |
| | |
| | |
| | | |
The information is exposed by curl for some crypto libraries in the form
of name:content strings. We can't do much more than return this
information.
|