Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
36b52506
Commit
36b52506
authored
2 years ago
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
errors: move into util
parent
7572d539
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/util/errors.c
+4
-4
src/util/errors.h
+1
-1
No files found.
src/
libgit2
/errors.c
→
src/
util
/errors.c
View file @
36b52506
...
...
@@ -5,11 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "
common
.h"
#include "
git2_util
.h"
#include "errors.h"
#include "posix.h"
#include "str.h"
#include "libgit2.h"
#include "runtime.h"
/*
...
...
@@ -23,7 +23,7 @@ static git_error oom_error = {
};
static
git_error
uninitialized_error
=
{
"lib
git2 has not been initialized; you must call git_libgit2_init
"
,
"lib
rary has not been initialized
"
,
GIT_ERROR_INVALID
};
...
...
@@ -279,7 +279,7 @@ const git_error *git_error_last(void)
struct
error_threadstate
*
threadstate
;
/* If the library is not initialized, return a static error. */
if
(
!
git_
libgit2
_init_count
())
if
(
!
git_
runtime
_init_count
())
return
&
uninitialized_error
;
if
((
threadstate
=
threadstate_get
())
==
NULL
)
...
...
This diff is collapsed.
Click to expand it.
src/
libgit2
/errors.h
→
src/
util
/errors.h
View file @
36b52506
...
...
@@ -8,7 +8,7 @@
#ifndef INCLUDE_errors_h__
#define INCLUDE_errors_h__
#include "
common
.h"
#include "
git2_util
.h"
#include "git2/sys/errors.h"
/* Initialize the error thread-state. */
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment