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
b6f18db9
Commit
b6f18db9
authored
Apr 05, 2020
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sysdir: remove unused git_sysdir_get_str
parent
ad341eb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
30 deletions
+0
-30
src/sysdir.c
+0
-19
src/sysdir.h
+0
-11
No files found.
src/sysdir.c
View file @
b6f18db9
...
@@ -216,25 +216,6 @@ int git_sysdir_get(const git_buf **out, git_sysdir_t which)
...
@@ -216,25 +216,6 @@ int git_sysdir_get(const git_buf **out, git_sysdir_t which)
return
0
;
return
0
;
}
}
int
git_sysdir_get_str
(
char
*
out
,
size_t
outlen
,
git_sysdir_t
which
)
{
const
git_buf
*
path
=
NULL
;
GIT_ERROR_CHECK_ERROR
(
git_sysdir_check_selector
(
which
));
GIT_ERROR_CHECK_ERROR
(
git_sysdir_get
(
&
path
,
which
));
if
(
!
out
||
path
->
size
>=
outlen
)
{
git_error_set
(
GIT_ERROR_NOMEMORY
,
"buffer is too short for the path"
);
return
GIT_EBUFS
;
}
git_buf_copy_cstr
(
out
,
outlen
,
path
);
return
0
;
}
#define PATH_MAGIC "$PATH"
#define PATH_MAGIC "$PATH"
int
git_sysdir_set
(
git_sysdir_t
which
,
const
char
*
search_path
)
int
git_sysdir_set
(
git_sysdir_t
which
,
const
char
*
search_path
)
...
...
src/sysdir.h
View file @
b6f18db9
...
@@ -94,17 +94,6 @@ extern int git_sysdir_global_init(void);
...
@@ -94,17 +94,6 @@ extern int git_sysdir_global_init(void);
extern
int
git_sysdir_get
(
const
git_buf
**
out
,
git_sysdir_t
which
);
extern
int
git_sysdir_get
(
const
git_buf
**
out
,
git_sysdir_t
which
);
/**
/**
* Get search path into a preallocated buffer
*
* @param out String buffer to write into
* @param outlen Size of string buffer
* @param which Which search path to return
* @return 0 on success, GIT_EBUFS if out is too small, <0 on other failure
*/
extern
int
git_sysdir_get_str
(
char
*
out
,
size_t
outlen
,
git_sysdir_t
which
);
/**
* Set search paths for global/system/xdg files
* Set search paths for global/system/xdg files
*
*
* The first occurrence of the magic string "$PATH" in the new value will
* The first occurrence of the magic string "$PATH" in the new value will
...
...
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