Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | futils: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -4/+3 | |
| | | ||||||
* | | filter: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -19/+21 | |
| | | ||||||
* | | filebuf: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -7/+9 | |
| | | ||||||
* | | fetchhead: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -4/+8 | |
| | | ||||||
* | | errors: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -1/+1 | |
| | | ||||||
* | | diff: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 6 | -34/+53 | |
| | | ||||||
* | | describe: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -2/+4 | |
| | | ||||||
* | | delta: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -1/+1 | |
| | | ||||||
* | | date: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -1/+2 | |
| | | ||||||
* | | config: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 3 | -10/+15 | |
| | | ||||||
* | | commit: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -28/+41 | |
| | | ||||||
* | | clone: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -5/+10 | |
| | | ||||||
* | | cherrypick: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -2/+6 | |
| | | ||||||
* | | checkout: use GIT_ASSERT | Edward Thomson | 2020-11-27 | 1 | -7/+10 | |
| | | ||||||
* | | buffer: git_buf_copy_cstr should return a value | Edward Thomson | 2020-11-25 | 3 | -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 value | Edward Thomson | 2020-11-25 | 17 | -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_ASSERT | Edward Thomson | 2020-11-25 | 2 | -10/+13 | |
| | | ||||||
* | | branch: use GIT_ASSERT | Edward Thomson | 2020-11-25 | 1 | -10/+22 | |
| | | ||||||
* | | blob: use GIT_ASSERT | Edward Thomson | 2020-11-25 | 1 | -9/+19 | |
| | | ||||||
* | | blame: use GIT_ASSERT | Edward Thomson | 2020-11-25 | 1 | -5/+11 | |
| | | ||||||
* | | attr_file: use GIT_ASSERT | Edward Thomson | 2020-11-25 | 1 | -4/+7 | |
| | | ||||||
* | | attr: use GIT_ASSERT | Edward Thomson | 2020-11-25 | 1 | -3/+12 | |
| | | ||||||
* | | apply: use GIT_ASSERT | Edward Thomson | 2020-11-25 | 1 | -7/+16 | |
| | | ||||||
* | | annotated_commit: use GIT_ASSERT | Edward Thomson | 2020-11-25 | 1 | -9/+21 | |
| | | ||||||
* | | Merge pull request #5580 from libgit2/ethomson/win32_leakcheck | Edward Thomson | 2020-11-21 | 11 | -634/+614 | |
|\ \ | | | | | | | msvc crtdbg -> win32 leakcheck | |||||
| * | | cmake: rename MSVC_CRTDBG to WIN32_LEAKCHECK | Edward Thomson | 2020-11-21 | 5 | -5/+5 | |
| | | | ||||||
| * | | alloc: rename the win32 leakcheck allocator | Edward Thomson | 2020-11-21 | 4 | -123/+123 | |
| | | | | | | | | | | | | | | | The win32 leakchecking system is now named win32_leakcheck. Update the allocator to match. | |||||
| * | | win32: consolidate leak checking initialization | Edward Thomson | 2020-11-21 | 4 | -59/+61 | |
| | | | | | | | | | | | | | | | Move leak check initialization into git_win32_leakcheck_global_init, and call it on library initialization. | |||||
| * | | win32: "crtdbg" is now "leakcheck" | Edward Thomson | 2020-11-21 | 8 | -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/master | Edward Thomson | 2020-11-21 | 1 | -1/+8 | |
|\ \ \ | |/ / |/| | | Add missing worktree_dir check and test case | |||||
| * | | Apply suggestions from code review | Edward Thomson | 2020-11-21 | 1 | -1/+1 | |
| | | | ||||||
| * | | worktree: Added worktree_dir check | Reginald McLean | 2020-11-06 | 1 | -1/+8 | |
| | | | | | | | | | | | | Fixes #5280 | |||||
* | | | Merge pull request #5690 from lhchavez/fix-filelimit-compile-error | Edward Thomson | 2020-11-21 | 2 | -22/+23 | |
|\ \ \ | | | | | | | | | Fix the `-DTHREADSAFE=OFF` build | |||||
| * | | | Fix the `-DTHREADSAFE=OFF` build | lhchavez | 2020-11-02 | 2 | -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_valid | Sven Strickroth | 2020-10-25 | 1 | -0/+25 | |
| | | | | | | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de> | |||||
* | | | Add git_branch_name_is_valid | Sven Strickroth | 2020-10-25 | 1 | -0/+29 | |
| | | | | | | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de> | |||||
* | | | remote: deprecate git_remote_is_valid_name | Edward Thomson | 2020-10-25 | 1 | -8/+14 | |
| | | | ||||||
* | | | remote: use git_remote_name_is_valid | Edward Thomson | 2020-10-25 | 1 | -2/+4 | |
| | | | ||||||
* | | | refs: introduce git_remote_name_is_valid | Edward Thomson | 2020-10-25 | 1 | -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 specs | Edward Thomson | 2020-10-25 | 2 | -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_name | Edward Thomson | 2020-10-25 | 1 | -9/+15 | |
| | | | ||||||
* | | | refs: use git_reference_name_is_valid | Edward Thomson | 2020-10-25 | 3 | -9/+18 | |
| | | | ||||||
* | | | refs: introduce git_reference_name_is_valid | Edward Thomson | 2020-10-25 | 2 | -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 validation | Edward Thomson | 2020-10-25 | 3 | -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 threads | Edward Thomson | 2020-10-14 | 1 | -1/+1 | |
| | | ||||||
* | | Merge pull request #5546 from libgit2/ethomson/init | Edward Thomson | 2020-10-14 | 37 | -490/+580 | |
|\ \ | | | | | | | Refactor "global" state | |||||
| * | | Move libgit2 settings into libgit2.cethomson/init | Edward Thomson | 2020-10-11 | 3 | -331/+331 | |
| | | | ||||||
| * | | Rename global.c to libgit2.c | Edward Thomson | 2020-10-11 | 1 | -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 Thomson | 2020-10-11 | 26 | -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 exit | Edward Thomson | 2020-10-11 | 2 | -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. |