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
9e49cb7a
Commit
9e49cb7a
authored
Oct 11, 2014
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2613 from libgit2/rb/minor-cleanups
Minor cleanups for master
parents
fd0f6d38
85fe63bc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
include/git2/common.h
+0
-2
src/commit_list.h
+2
-0
src/describe.c
+0
-0
tests/describe/describe_helpers.c
+2
-2
No files found.
include/git2/common.h
View file @
9e49cb7a
...
...
@@ -83,8 +83,6 @@ GIT_BEGIN_DECL
*/
#define GIT_OID_HEX_ZERO "0000000000000000000000000000000000000000"
#define FLAG_BITS 27
/**
* Return the version of the libgit2 library
* being currently used.
...
...
src/commit_list.h
View file @
9e49cb7a
...
...
@@ -18,6 +18,8 @@
#define COMMIT_ALLOC \
(sizeof(git_commit_list_node) + PARENTS_PER_COMMIT * sizeof(git_commit_list_node *))
#define FLAG_BITS 4
typedef
struct
git_commit_list_node
{
git_oid
oid
;
uint32_t
time
;
...
...
src/describe.c
View file @
9e49cb7a
tests/describe/describe_helpers.c
View file @
9e49cb7a
...
...
@@ -16,7 +16,7 @@ void assert_describe(
cl_git_pass
(
git_describe_commit
(
&
result
,
object
,
opts
));
cl_git_pass
(
git_describe_format
(
&
label
,
result
,
fmt_opts
));
cl_
gi
t_pass
(
p_fnmatch
(
expected_output
,
git_buf_cstr
(
&
label
),
0
));
cl_
mus
t_pass
(
p_fnmatch
(
expected_output
,
git_buf_cstr
(
&
label
),
0
));
git_describe_result_free
(
result
);
git_object_free
(
object
);
...
...
@@ -35,7 +35,7 @@ void assert_describe_workdir(
cl_git_pass
(
git_describe_workdir
(
&
result
,
repo
,
opts
));
cl_git_pass
(
git_describe_format
(
&
label
,
result
,
fmt_opts
));
cl_
gi
t_pass
(
p_fnmatch
(
expected_output
,
git_buf_cstr
(
&
label
),
0
));
cl_
mus
t_pass
(
p_fnmatch
(
expected_output
,
git_buf_cstr
(
&
label
),
0
));
git_describe_result_free
(
result
);
git_buf_free
(
&
label
);
...
...
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