File tree Expand file tree Collapse file tree 5 files changed +28
-14
lines changed
Expand file tree Collapse file tree 5 files changed +28
-14
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,6 @@ typedef struct git_strarray {
3636 */
3737GIT_EXTERN (void ) git_strarray_dispose (git_strarray * array );
3838
39- /**
40- * Copy a string array object from source to target.
41- *
42- * Note: target is overwritten and hence should be empty, otherwise its
43- * contents are leaked. Call git_strarray_free() if necessary.
44- *
45- * @param tgt target
46- * @param src source
47- * @return 0 on success, < 0 on allocation failure
48- */
49- GIT_EXTERN (int ) git_strarray_copy (git_strarray * tgt , const git_strarray * src );
50-
51-
5239/** @} */
5340GIT_END_DECL
5441
Original file line number Diff line number Diff line change 88#include "common.h"
99
1010#include "git2/describe.h"
11- #include "git2/strarray.h"
1211#include "git2/diff.h"
1312#include "git2/status.h"
1413
1918#include "refs.h"
2019#include "repository.h"
2120#include "revwalk.h"
21+ #include "strarray.h"
2222#include "tag.h"
2323#include "vector.h"
2424#include "wildmatch.h"
Original file line number Diff line number Diff line change 1717#include "fetchhead.h"
1818#include "push.h"
1919#include "proxy.h"
20+ #include "strarray.h"
2021
2122#include "git2/config.h"
2223#include "git2/types.h"
Original file line number Diff line number Diff line change 88#include "util.h"
99
1010#include "common.h"
11+ #include "strarray.h"
1112
1213int git_strarray_copy (git_strarray * tgt , const git_strarray * src )
1314{
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (C) the libgit2 contributors. All rights reserved.
3+ *
4+ * This file is part of libgit2, distributed under the GNU GPL v2 with
5+ * a Linking Exception. For full terms see the included COPYING file.
6+ */
7+ #ifndef INCLUDE_strarray_h__
8+ #define INCLUDE_strarray_h__
9+
10+ #include "common.h"
11+ #include "git2/strarray.h"
12+
13+ /**
14+ * Copy a string array object from source to target.
15+ *
16+ * Note: target is overwritten and hence should be empty, otherwise its
17+ * contents are leaked. Call git_strarray_free() if necessary.
18+ *
19+ * @param tgt target
20+ * @param src source
21+ * @return 0 on success, < 0 on allocation failure
22+ */
23+ extern int git_strarray_copy (git_strarray * tgt , const git_strarray * src );
24+
25+ #endif
You can’t perform that action at this time.
0 commit comments