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
aa8a76ef
Commit
aa8a76ef
authored
Nov 17, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag: rename git_tag_type to git_tag_target_type
parent
86b9dbc1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
examples/general.c
+1
-1
include/git2/tag.h
+1
-1
src/tag.c
+1
-1
tests-clar/object/tag/read.c
+1
-1
No files found.
examples/general.c
View file @
aa8a76ef
...
...
@@ -239,7 +239,7 @@ int main (int argc, char** argv)
// the tagger (a git_signature - name, email, timestamp), and the tag message.
git_tag_target
((
git_object
**
)
&
commit
,
tag
);
tname
=
git_tag_name
(
tag
);
// "test"
ttype
=
git_tag_type
(
tag
);
// GIT_OBJ_COMMIT (otype enum)
ttype
=
git_tag_t
arget_t
ype
(
tag
);
// GIT_OBJ_COMMIT (otype enum)
tmessage
=
git_tag_message
(
tag
);
// "tag message\n"
printf
(
"Tag Message: %s
\n
"
,
tmessage
);
...
...
include/git2/tag.h
View file @
aa8a76ef
...
...
@@ -104,7 +104,7 @@ GIT_EXTERN(const git_oid *) git_tag_target_oid(git_tag *tag);
* @param tag a previously loaded tag.
* @return type of the tagged object
*/
GIT_EXTERN
(
git_otype
)
git_tag_type
(
git_tag
*
tag
);
GIT_EXTERN
(
git_otype
)
git_tag_t
arget_t
ype
(
git_tag
*
tag
);
/**
* Get the name of a tag
...
...
src/tag.c
View file @
aa8a76ef
...
...
@@ -39,7 +39,7 @@ const git_oid *git_tag_target_oid(git_tag *t)
return
&
t
->
target
;
}
git_otype
git_tag_type
(
git_tag
*
t
)
git_otype
git_tag_t
arget_t
ype
(
git_tag
*
t
)
{
assert
(
t
);
return
t
->
type
;
...
...
tests-clar/object/tag/read.c
View file @
aa8a76ef
...
...
@@ -38,7 +38,7 @@ void test_object_tag_read__parse(void)
cl_git_pass
(
git_tag_lookup
(
&
tag1
,
g_repo
,
&
id1
));
cl_assert_equal_s
(
git_tag_name
(
tag1
),
"test"
);
cl_assert
(
git_tag_type
(
tag1
)
==
GIT_OBJ_TAG
);
cl_assert
(
git_tag_t
arget_t
ype
(
tag1
)
==
GIT_OBJ_TAG
);
cl_git_pass
(
git_tag_target
((
git_object
**
)
&
tag2
,
tag1
));
cl_assert
(
tag2
!=
NULL
);
...
...
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