| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In order to be loaded, a remote needs to be configured with at least a `url` or a `pushurl`.
ENOTFOUND will be returned when trying to git_remote_load() a remote with neither of these entries defined.
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
netops: remove duplicate include
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
9e9aee6 added an include <netinet/in.h> to fix the build on FreeBSD.
Sometime since then the same header is included ifndef _WIN32, so
remove the duplicate include.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Configuration iterators redux
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Build it on top of the normal iterator instead, which lets use re-use
a lot of code.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When the glob iterator is passed NULL regexp, call the non-globbing
iterator so we don't have to special-case which functions to call.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Use a glob iterator instead of going through
git_config_backend_foreach_match. This function is left as it's
exposed in the API.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
As the name suggests, it iterates over all the entries
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Make it look like the refs iterator API.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Implement the foreach version as a wrapper around the iterator.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Like we have in the references iterator, next and free belong in the
iterator itself.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The plain function will return an iterator, so move this one out of
the way.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Really report an error in foreach if we fail to allocate the iterator,
and don't fail if the config is emtpy.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Make the iterator structure opaque and make sure it compiles.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
new functions in struct git_config_backend:
* iterator_new(...)
* iterator_free(...)
* next(...)
The old callback based foreach style can still be used with `git_config_backend_foreach_match`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This step is needed to easily add iterators to git_config_backend
As well use these new git_strmap functions to implement foreach
* git_strmap_iter
* git_strmap_has_data(...)
* git_strmap_begin(...)
* git_strmap_end(...)
* git_strmap_next(...)
|
| |_|/ / /
|/| | | | |
|
| |/ / /
|/| | | |
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | | |
When a git_buf contains a UTF-8 BOM, the three bytes comprising
that BOM are treated as unprintable characters. For a small git_buf,
the three BOM characters overwhelm the printable characters. This
is problematic when trying to check out a small file as the CR/LF
filtering will not apply.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
p_inet_pton on Windows should set errno properly for callers.
Rewrite p_inet_pton to handle error cases correctly and add
test cases to exercise this function.
|
| | |
| | |
| | |
| | |
| | |
| | | |
We didn't use the added precision in gettimeofday, so remove it.
This prevents us from having an unnecessary reimplementation on
win32.
|
| | | |
|
|\ \ \
| | | |
| | | | |
odb: move hashing to the frontend for streaming
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If none of the backends support direct writes and we must stream the
whole file, we already know what the object's id should be; so use the
stream's functions directly, bypassing the frontend's hashing and
overwriting of our existing id.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The frontend is in charge of calculating the id of the objects. Thus
the backends should treat it as a read-only value. The positioning in
the function signature made it seem as though it was an output
parameter.
Make the id const and move it from the front to behind the subject
(backend or stream).
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Hash the data as it's coming into the stream and tell the backend what
its name is when finalizing the write. This makes it consistent with
the way a plain git_odb_write() performs the write.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is in preparation for moving the hashing to the frontend, which
requires us to handle the incoming data before passing it to the
backend's stream.
|
|\ \ \ \
| | | | |
| | | | | |
odb: Straighten oid prefix handling
|
| | |_|/
| |/| | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
Report the index being locked with its own error code in order to be
able to differentiate, as a locked index is typically the result of a
crashed process or concurrent access, both of which often require user
intervention to fix.
|
|\ \ \
| | | |
| | | | |
push: handle tag chains correctly
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When dealing with a chain of tags, we need to enqueue each of them
individually, which means we can't use `git_tag_peel` as that jumps
over the intermediate tags.
Do the peeling manually so we can look at each object and take the
appropriate action.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This adds a new API for creating a signature that uses the
config to look up "user.name" and "user.email".
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This fixes a small memory leak in git_revparse where early returns on
errors from git_revparse_single cause a free() on the (reallocated) left
side of the revspec to be skipped.
|