| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
`git_buf_copy_cstr` is called with user-input, and wants to sanity-check
that input. Allow it to return a value if the input was malformed in a
way that we cannot cope.
|
| |
| |
| |
| |
| |
| | |
`git_buf_sanitize` is called with user-input, and wants to sanity-check
that input. Allow it to return a value if the input was malformed in a
way that we cannot cope.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
msvc crtdbg -> win32 leakcheck
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
The win32 leakchecking system is now named win32_leakcheck. Update the
allocator to match.
|
| | |
| | |
| | |
| | |
| | | |
Move leak check initialization into git_win32_leakcheck_global_init, and
call it on library initialization.
|
| | |
| | |
| | |
| | |
| | | |
msvc crtdbg is a mouthfull that is not particularly indicative of what
it does. Let's rename it to "win32 leakcheck".
|
|\ \ \
| |/ /
|/| | |
Add missing worktree_dir check and test case
|
| | | |
|
| | |
| | |
| | |
| | | |
Fixes #5280
|
|\ \ \
| | | |
| | | | |
Fix the `-DTHREADSAFE=OFF` build
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
This change avoids using the `(void)0` construct for some of the mutex
`#define`s, since that makes the "return type" of those "functions" to
be `void` instead of `int`.
|
| | |
| | |
| | |
| | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Provide a function that can check remote name validity but can also
signal when an error occurs. Use the name "name_is_valid", which is
more suggestive of checking a given name, rather than "is_valid_name",
which suggests that the function checks the validity of the current
remote's name.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Disambiguate invalid specifications in `git_refspec__parse` so that
callers can determine the difference between invalid specifications and
actual errors. No call sites wil propagagte this new error message to
an end-user, so there is no user-facing API change.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Provide a function that can check reference name validity but can also
signal when an error occurs. Use the name "name_is_valid", which is
more suggestive of checking a given name, rather than "is_valid_name",
which suggests that the function checks the validity of the current
reference's name.
|
|/ /
| |
| |
| |
| | |
Move `git_reference__is_valid_name` to `git_reference__name_is_valid`,
which returns errors and sets an out boolean parameter.
|
| | |
|
|\ \
| | |
| | | |
Refactor "global" state
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Now that we've identified that our global settings really aren't global
at all, and refactored the library to match that, change global.c to
libgit2.c, which is especially nice since the prefix of the functions
matches the filename.
|
| | |
| | |
| | |
| | |
| | | |
Provide a mechanism for system components to register for initialization
and shutdown of the libgit2 runtime.
|
| | |
| | |
| | |
| | |
| | |
| | | |
We want to store a pointer to emulate `pthread_exit` on Windows. Do
this within the threading infrastructure so that it could potentially be
re-used outside of the context of libgit2 itself.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Our "global initialization" has accumulated some debris over the years.
It was previously responsible for both running the various global
initializers (that set up various subsystems) _and_ setting up the
"global state", which is actually the thread-local state for things
like error reporting.
Separate the thread local state out into "threadstate". Use the normal
subsystem initialization functions that we already have to set it up.
This makes both the global initialization system and the threadstate
system simpler to reason about.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Ensure that we can allocate the error message buffer. In keeping with
our typical policiess, we allow (small) memory leaks in the case where
we're out of memory.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Move the mwindow mutex into the mwindow code itself, initializing it in
the mwindow global initialization function instead of in the global
initializer.
|
| | |
| | |
| | |
| | |
| | | |
Move the settings global data teardown into its own separate function,
instead of intermingled with the global state.
|
| | |
| | |
| | |
| | |
| | | |
Move the MSVC C runtime debugging bits into the allocator's global init
function.
|
| | |
| | |
| | |
| | |
| | | |
Instead of treating win32 thread initialization specially in the win32
git_libgit2_init function, add a git_global_threads_init function.
|