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
ebe5d8ec
Commit
ebe5d8ec
authored
Jul 21, 2017
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: move static method to the top
parent
f01a8587
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
tests/refs/reflog/reflog_helpers.c
+12
-12
No files found.
tests/refs/reflog/reflog_helpers.c
View file @
ebe5d8ec
...
...
@@ -3,6 +3,18 @@
#include "repository.h"
#include "reflog.h"
static
int
reflog_entry_tostr
(
git_buf
*
out
,
const
git_reflog_entry
*
entry
)
{
char
old_oid
[
GIT_OID_HEXSZ
],
new_oid
[
GIT_OID_HEXSZ
];
assert
(
out
&&
entry
);
git_oid_tostr
((
char
*
)
&
old_oid
,
GIT_OID_HEXSZ
,
git_reflog_entry_id_old
(
entry
));
git_oid_tostr
((
char
*
)
&
new_oid
,
GIT_OID_HEXSZ
,
git_reflog_entry_id_new
(
entry
));
return
git_buf_printf
(
out
,
"%s %s %s %s"
,
old_oid
,
new_oid
,
"somesig"
,
git_reflog_entry_message
(
entry
));
}
size_t
reflog_entrycount
(
git_repository
*
repo
,
const
char
*
name
)
{
git_reflog
*
log
;
...
...
@@ -86,18 +98,6 @@ void cl_reflog_check_entry_(git_repository *repo, const char *reflog, size_t idx
git_reflog_free
(
log
);
}
static
int
reflog_entry_tostr
(
git_buf
*
out
,
const
git_reflog_entry
*
entry
)
{
char
old_oid
[
GIT_OID_HEXSZ
],
new_oid
[
GIT_OID_HEXSZ
];
assert
(
out
&&
entry
);
git_oid_tostr
((
char
*
)
&
old_oid
,
GIT_OID_HEXSZ
,
git_reflog_entry_id_old
(
entry
));
git_oid_tostr
((
char
*
)
&
new_oid
,
GIT_OID_HEXSZ
,
git_reflog_entry_id_new
(
entry
));
return
git_buf_printf
(
out
,
"%s %s %s %s"
,
old_oid
,
new_oid
,
"somesig"
,
git_reflog_entry_message
(
entry
));
}
void
reflog_print
(
git_repository
*
repo
,
const
char
*
reflog_name
)
{
git_reflog
*
reflog
;
...
...
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