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
7108b431
Unverified
Commit
7108b431
authored
Feb 16, 2023
by
Edward Thomson
Committed by
GitHub
Feb 16, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6486 from libgit2/ethomson/strarray-deprecate
parents
cefe6c45
7c6df9e1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
14 deletions
+28
-14
include/git2/strarray.h
+0
-13
src/libgit2/describe.c
+1
-1
src/libgit2/remote.c
+1
-0
src/libgit2/strarray.c
+1
-0
src/libgit2/strarray.h
+25
-0
No files found.
include/git2/strarray.h
View file @
7108b431
...
...
@@ -36,19 +36,6 @@ typedef struct git_strarray {
*/
GIT_EXTERN
(
void
)
git_strarray_dispose
(
git_strarray
*
array
);
/**
* Copy a string array object from source to target.
*
* Note: target is overwritten and hence should be empty, otherwise its
* contents are leaked. Call git_strarray_free() if necessary.
*
* @param tgt target
* @param src source
* @return 0 on success, < 0 on allocation failure
*/
GIT_EXTERN
(
int
)
git_strarray_copy
(
git_strarray
*
tgt
,
const
git_strarray
*
src
);
/** @} */
GIT_END_DECL
...
...
src/libgit2/describe.c
View file @
7108b431
...
...
@@ -8,7 +8,6 @@
#include "common.h"
#include "git2/describe.h"
#include "git2/strarray.h"
#include "git2/diff.h"
#include "git2/status.h"
...
...
@@ -19,6 +18,7 @@
#include "refs.h"
#include "repository.h"
#include "revwalk.h"
#include "strarray.h"
#include "tag.h"
#include "vector.h"
#include "wildmatch.h"
...
...
src/libgit2/remote.c
View file @
7108b431
...
...
@@ -17,6 +17,7 @@
#include "fetchhead.h"
#include "push.h"
#include "proxy.h"
#include "strarray.h"
#include "git2/config.h"
#include "git2/types.h"
...
...
src/libgit2/strarray.c
View file @
7108b431
...
...
@@ -8,6 +8,7 @@
#include "util.h"
#include "common.h"
#include "strarray.h"
int
git_strarray_copy
(
git_strarray
*
tgt
,
const
git_strarray
*
src
)
{
...
...
src/libgit2/strarray.h
0 → 100644
View file @
7108b431
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_strarray_h__
#define INCLUDE_strarray_h__
#include "common.h"
#include "git2/strarray.h"
/**
* Copy a string array object from source to target.
*
* Note: target is overwritten and hence should be empty, otherwise its
* contents are leaked. Call git_strarray_free() if necessary.
*
* @param tgt target
* @param src source
* @return 0 on success, < 0 on allocation failure
*/
extern
int
git_strarray_copy
(
git_strarray
*
tgt
,
const
git_strarray
*
src
);
#endif
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