summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | futils: use GIT_ASSERTEdward Thomson2020-11-271-4/+3
| |
* | filter: use GIT_ASSERTEdward Thomson2020-11-271-19/+21
| |
* | filebuf: use GIT_ASSERTEdward Thomson2020-11-271-7/+9
| |
* | fetchhead: use GIT_ASSERTEdward Thomson2020-11-271-4/+8
| |
* | errors: use GIT_ASSERTEdward Thomson2020-11-271-1/+1
| |
* | diff: use GIT_ASSERTEdward Thomson2020-11-276-34/+53
| |
* | describe: use GIT_ASSERTEdward Thomson2020-11-271-2/+4
| |
* | delta: use GIT_ASSERTEdward Thomson2020-11-271-1/+1
| |
* | date: use GIT_ASSERTEdward Thomson2020-11-271-1/+2
| |
* | config: use GIT_ASSERTEdward Thomson2020-11-273-10/+15
| |
* | commit: use GIT_ASSERTEdward Thomson2020-11-271-28/+41
| |
* | clone: use GIT_ASSERTEdward Thomson2020-11-271-5/+10
| |
* | cherrypick: use GIT_ASSERTEdward Thomson2020-11-271-2/+6
| |
* | checkout: use GIT_ASSERTEdward Thomson2020-11-271-7/+10
| |
* | buffer: git_buf_copy_cstr should return a valueEdward Thomson2020-11-253-5/+10
| | | | | | | | | | | | `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.
* | buffer: git_buf_sanitize should return a valueEdward Thomson2020-11-2517-61/+133
| | | | | | | | | | | | `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.
* | buffer: use GIT_ASSERTEdward Thomson2020-11-252-10/+13
| |
* | branch: use GIT_ASSERTEdward Thomson2020-11-251-10/+22
| |
* | blob: use GIT_ASSERTEdward Thomson2020-11-251-9/+19
| |
* | blame: use GIT_ASSERTEdward Thomson2020-11-251-5/+11
| |
* | attr_file: use GIT_ASSERTEdward Thomson2020-11-251-4/+7
| |
* | attr: use GIT_ASSERTEdward Thomson2020-11-251-3/+12
| |
* | apply: use GIT_ASSERTEdward Thomson2020-11-251-7/+16
| |
* | annotated_commit: use GIT_ASSERTEdward Thomson2020-11-251-9/+21
| |
* | Merge pull request #5580 from libgit2/ethomson/win32_leakcheckEdward Thomson2020-11-2111-634/+614
|\ \ | | | | | | msvc crtdbg -> win32 leakcheck
| * | cmake: rename MSVC_CRTDBG to WIN32_LEAKCHECKEdward Thomson2020-11-215-5/+5
| | |
| * | alloc: rename the win32 leakcheck allocatorEdward Thomson2020-11-214-123/+123
| | | | | | | | | | | | | | | The win32 leakchecking system is now named win32_leakcheck. Update the allocator to match.
| * | win32: consolidate leak checking initializationEdward Thomson2020-11-214-59/+61
| | | | | | | | | | | | | | | Move leak check initialization into git_win32_leakcheck_global_init, and call it on library initialization.
| * | win32: "crtdbg" is now "leakcheck"Edward Thomson2020-11-218-498/+476
| | | | | | | | | | | | | | | msvc crtdbg is a mouthfull that is not particularly indicative of what it does. Let's rename it to "win32 leakcheck".
* | | Merge pull request #5692 from rbmclean/masterEdward Thomson2020-11-211-1/+8
|\ \ \ | |/ / |/| | Add missing worktree_dir check and test case
| * | Apply suggestions from code reviewEdward Thomson2020-11-211-1/+1
| | |
| * | worktree: Added worktree_dir checkReginald McLean2020-11-061-1/+8
| | | | | | | | | | | | Fixes #5280
* | | Merge pull request #5690 from lhchavez/fix-filelimit-compile-errorEdward Thomson2020-11-212-22/+23
|\ \ \ | | | | | | | | Fix the `-DTHREADSAFE=OFF` build
| * | | Fix the `-DTHREADSAFE=OFF` buildlhchavez2020-11-022-22/+23
| |/ / | | | | | | | | | | | | | | | 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`.
* | | Add git_tag_name_is_validSven Strickroth2020-10-251-0/+25
| | | | | | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | | Add git_branch_name_is_validSven Strickroth2020-10-251-0/+29
| | | | | | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | | remote: deprecate git_remote_is_valid_nameEdward Thomson2020-10-251-8/+14
| | |
* | | remote: use git_remote_name_is_validEdward Thomson2020-10-251-2/+4
| | |
* | | refs: introduce git_remote_name_is_validEdward Thomson2020-10-251-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | refspec: return GIT_EINVALIDSPEC for invalid specsEdward Thomson2020-10-252-9/+6
| | | | | | | | | | | | | | | | | | | | | 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.
* | | refs: deprecate git_reference_is_valid_nameEdward Thomson2020-10-251-9/+15
| | |
* | | refs: use git_reference_name_is_validEdward Thomson2020-10-253-9/+18
| | |
* | | refs: introduce git_reference_name_is_validEdward Thomson2020-10-252-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | refs: error checking in internal name validationEdward Thomson2020-10-253-36/+64
|/ / | | | | | | | | Move `git_reference__is_valid_name` to `git_reference__name_is_valid`, which returns errors and sets an out boolean parameter.
* | threadstate: rename tlsdata when building w/o threadsEdward Thomson2020-10-141-1/+1
| |
* | Merge pull request #5546 from libgit2/ethomson/initEdward Thomson2020-10-1437-490/+580
|\ \ | | | | | | Refactor "global" state
| * | Move libgit2 settings into libgit2.cethomson/initEdward Thomson2020-10-113-331/+331
| | |
| * | Rename global.c to libgit2.cEdward Thomson2020-10-111-0/+0
| | | | | | | | | | | | | | | | | | | | | 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.
| * | runtime: move init/shutdown into the "runtime"Edward Thomson2020-10-1126-225/+262
| | | | | | | | | | | | | | | Provide a mechanism for system components to register for initialization and shutdown of the libgit2 runtime.
| * | thread: don't use the global tlsdata for thread exitEdward Thomson2020-10-112-11/+18
| | | | | | | | | | | | | | | | | | 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.