| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
If the stream claims to support this feature, we can let the transport
set the proxy.
We also set HTTPPROXYTUNNEL option so curl can create a tunnel through
the proxy which lets us create our own TLS session (if needed).
|
|\ \
| | |
| | | |
Add `const` qualifier
|
| | |
| | |
| | |
| | |
| | |
| | | |
This fixes a warning in `examples/describe.c` without breaking the main build.
OTOH, I'm not sure if this is an API-compatible change.
|
| |/
|/|
| |
| |
| |
| | |
This allows the user to look up fields which we don't parse in libgit2,
and allows them to access gpgsig or mergetag fields if they wish to
check the signature.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We currently use a timetamp to check whether an index file has been
modified since we last read it, but this is racy. If two updates happen
in the same second and we read after the first one, we won't detect the
second one.
Instead read the SHA-1 checksum of the file, which are its last 20 bytes which
gives us a sure-fire way to detect whether the file has changed since we
last read it.
As we're now keeping track of it, expose an accessor to this data.
|
| |
| |
| |
| |
| |
| |
| | |
Introduce a new binary diff callback to provide the actual binary
delta contents to callers. Create this data from the diff contents
(instead of directly from the ODB) to support binary diffs including
the workdir, not just things coming out of the ODB.
|
|\ \
| | |
| | | |
cred_helpers: Add 'const' qualifiers to git_cred_userpass_payload
|
| | |
| | |
| | |
| | |
| | |
| | | |
Make both username & password in git_cred_userpass_payload 'const'.
The values are not altered anywhere, and the extra qualifier allows
clients to assign 'const' values there.
|
| | |
| | |
| | |
| | |
| | | |
`git_filter_list_contains` can be used to query a filter list to
determine if a given filter will be run.
|