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
8d2b3110
Commit
8d2b3110
authored
Nov 11, 2021
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: include function declarations
parent
bfdc0971
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
4 deletions
+13
-4
tests/filter/custom_helpers.c
+1
-0
tests/merge/merge_helpers.h
+4
-0
tests/refs/ref_helpers.c
+1
-0
tests/refs/reflog/reflog_helpers.c
+2
-1
tests/refs/reflog/reflog_helpers.h
+5
-3
No files found.
tests/filter/custom_helpers.c
View file @
8d2b3110
...
...
@@ -2,6 +2,7 @@
#include "posix.h"
#include "filter.h"
#include "git2/sys/filter.h"
#include "custom_helpers.h"
#define VERY_SECURE_ENCRYPTION(b) ((b) ^ 0xff)
...
...
tests/merge/merge_helpers.h
View file @
8d2b3110
...
...
@@ -65,4 +65,8 @@ int merge_test_reuc(git_index *index, const struct merge_reuc_entry expected[],
int
merge_test_workdir
(
git_repository
*
repo
,
const
struct
merge_index_entry
expected
[],
size_t
expected_len
);
void
merge__dump_names
(
git_index
*
index
);
void
merge__dump_index_entries
(
git_vector
*
index_entries
);
void
merge__dump_reuc
(
git_index
*
index
);
#endif
tests/refs/ref_helpers.c
View file @
8d2b3110
...
...
@@ -3,6 +3,7 @@
#include "common.h"
#include "util.h"
#include "path.h"
#include "ref_helpers.h"
int
reference_is_packed
(
git_reference
*
ref
)
{
...
...
tests/refs/reflog/reflog_helpers.c
View file @
8d2b3110
...
...
@@ -2,8 +2,9 @@
#include "repository.h"
#include "reflog.h"
#include "reflog_helpers.h"
static
int
reflog_entry_tostr
(
git_str
*
out
,
const
git_reflog_entry
*
entry
)
int
reflog_entry_tostr
(
git_str
*
out
,
const
git_reflog_entry
*
entry
)
{
char
old_oid
[
GIT_OID_HEXSZ
],
new_oid
[
GIT_OID_HEXSZ
];
...
...
tests/refs/reflog/reflog_helpers.h
View file @
8d2b3110
size_t
reflog_entrycount
(
git_repository
*
repo
,
const
char
*
name
);
#define cl_reflog_check_entry(repo, reflog, idx, old_spec, new_spec, email, message) \
cl_reflog_check_entry_(repo, reflog, idx, old_spec, new_spec, email, message, __FILE__, __LINE__)
cl_reflog_check_entry_(repo, reflog, idx, old_spec, new_spec, email, message, __FILE__, __
FUNCTION__, __
LINE__)
void
cl_reflog_check_entry_
(
git_repository
*
repo
,
const
char
*
reflog
,
size_t
idx
,
const
char
*
old_spec
,
const
char
*
new_spec
,
const
char
*
email
,
const
char
*
message
,
const
char
*
file
,
int
line
);
const
char
*
old_spec
,
const
char
*
new_spec
,
const
char
*
email
,
const
char
*
message
,
const
char
*
file
,
const
char
*
func
,
int
line
);
void
reflog_print
(
git_repository
*
repo
,
const
char
*
reflog_name
);
int
reflog_entry_tostr
(
git_str
*
out
,
const
git_reflog_entry
*
entry
);
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