File tree Expand file tree Collapse file tree 4 files changed +27
-14
lines changed Expand file tree Collapse file tree 4 files changed +27
-14
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,6 @@ typedef struct git_strarray {
36
36
*/
37
37
GIT_EXTERN (void ) git_strarray_dispose (git_strarray * array );
38
38
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
-
52
39
/** @} */
53
40
GIT_END_DECL
54
41
Original file line number Diff line number Diff line change 8
8
#include "common.h"
9
9
10
10
#include "git2/describe.h"
11
- #include "git2/strarray.h"
12
11
#include "git2/diff.h"
13
12
#include "git2/status.h"
14
13
19
18
#include "refs.h"
20
19
#include "repository.h"
21
20
#include "revwalk.h"
21
+ #include "strarray.h"
22
22
#include "tag.h"
23
23
#include "vector.h"
24
24
#include "wildmatch.h"
Original file line number Diff line number Diff line change 17
17
#include "fetchhead.h"
18
18
#include "push.h"
19
19
#include "proxy.h"
20
+ #include "strarray.h"
20
21
21
22
#include "git2/config.h"
22
23
#include "git2/types.h"
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