| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
When we're looking to update a tag, we can't stop if the tag auto-follow
rules don't say to update it. The tag might still match the refspec we
were given.
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | | |
With Visual Studio versions 2008 and older they ignore the full path to files and only check
the basename of the file to find a collision. Additionally, having duplicate basenames can break
other build tools like GYP.
This fixes https://github.com/libgit2/libgit2/issues/3356
|
| | |
| | |
| | |
| | |
| | | |
When an error state is an OOM, make sure that we treat is specially
and do not try to free it.
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Instead of allocating a brand new buffer for each error string we want
to store, we can use a per-thread buffer to store the error string and
re-use the underlying storage. We already use the buffer to format the
string, so this mostly makes that more direct.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Allow restoring a previously captured oom error, by
detecting when the captured message pointer points to the
static oom error message. This means there is no need
to strdup the message in giterr_detach.
|
| | | | |
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | | |
Error messages that are detached are assumed to be dynamically
allocated. Passing a pointer to the static oom error message
can cause an attempt to free the static buffer later. This change
checks if the oom error message is about to be detached and detaches
a copy instead.
|
|\ \ \
| | | |
| | | | |
filebuf: remove lockfile upon rename errors
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When we have an error renaming the lockfile, we need to make sure
that we remove it upon cleanup. For this, we need to keep track of
whether we opened the file and whether the rename succeeded.
If we did create the lockfile but the rename did not succeed, we
remove the lockfile. This won't protect against all errors, but
the most common ones (target file is open) does get handled.
|
|\ \ \ \
| | | | |
| | | | | |
index: stage an unregistered submodule as well
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We previously added logic to `_add_bypath()` to update a submodule. Go
further and stage the submodule even if it's not registered to behave
like git.
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
For such a path '/~/...' the leading '/' is stripped so the server will
get a path starting with '~' and correctly handle it.
|
|\ \ \ \
| | | | |
| | | | | |
Resolve documentation warnings
|
| | | | | |
|
| | |_|/
| |/| | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Without this change, compiling with gcc and pedantic generates warning:
ISO C does not allow extra ‘;’ outside of a function.
|
|\ \ \ \
| | | | |
| | | | | |
iterator: skip over errors in diriter init
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
An error here will typically mean that the directory was removed between
the time we iterated the parent and the time we wanted to visit it in
which case we should ignore it.
Other kinds of errors such as permissions (or transient errors) also
better dealt with by pretending we didn't see it.
|
| |_|_|/
|/| | |
| | | | |
Fixes issue #3338
|
|\ \ \ \
| | | | |
| | | | | |
Normalize submodule urls before looking at them
|
| | | | |
| | | | |
| | | | |
| | | | | |
Extract the backslash-to-slash conversion into a helper function.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Our path functions expect to work with slashes, so convert a
path with backslashes into one with slashes at the top of
the function.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Allow adding a submodule through git_index_add_bypath
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Similarly to how git itself does it, allow the index update operation to
stage a change in a submodule's HEAD.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This also affects `git_index_add_bypath()` by providing a better error
message and a specific error code when a directory is passed.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
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.
|
|\ \ \ \ \ \
| |_|_|_|_|/
|/| | | | | |
filter: make sure to close the stream even on error
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | | |
When the stream list init or write fail, we must also make sure to close
the stream, as that's the function contract.
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Make libgit2 work on Windows Vista again
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | | |
(fixes issue #3316)
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|\ \ \ \
| |/ / / |
|
| |\ \ \
| | | | |
| | | | | |
Fix macro redefinition warning
|
| | | | | |
|
| |\ \ \ \
| | |_|_|/
| |/| | | |
List a submodule only once when the path matches a submodule in the index
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | | |
If we get the path from the gitmodules file, look up the submodule we're
interested in by path, rather then by name. Otherwise we might get
duplicate results.
|
| |\ \ \
| | |_|/
| |/| | |
|
| | | |
| | | |
| | | |
| | | | |
The header src/cc-compat.h defines portable format specifiers PRIuZ, PRIdZ, and PRIxZ. The original report highlighted the need to use these specifiers in examples/network/fetch.c. For this commit, I checked all C source and header files not in deps/ and transitioned to the appropriate format specifier where appropriate.
|
| |\ \ \
| | | | |
| | | | | |
Clean up some warnings
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
Fix undefined reference with old versions of openssl
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Versions prior to 0.9.8f did not have this function, rhel/centos5 are still on a
heavily backported version of 0.9.8e and theoretically supported until March 2017
Without this ifdef, I get the following link failure:
```
CMakeFiles/libgit2_clar.dir/src/openssl_stream.c.o: In function `openssl_connect':
openssl_stream.c:(.text+0x45a): undefined reference to `SSL_set_tlsext_host_name'
collect2: error: ld returned 1 exit status
make[6]: *** [libgit2_clar] Error 1
```
|
| | |/ / /
| |/| | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
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.
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Upgrade xdiff to version used in core git 2.4.5 (0df0541).
Corrects an issue where an LF is added at EOF while applying
an unrelated change (ba31180), cleans up some unused code (be89977 and
e5b0662), and provides an improved callback to avoid leaking internal
(to xdiff) structures (467d348).
This also adds some additional functionality that we do not yet take
advantage of, namely the ability to ignore changes whose lines are
all blank (36617af).
|
| |\ \ \ \
| | | | | |
| | | | | | |
Added git_diff_index_to_index()
|
| | | | | | |
|