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
f70e466f
Commit
f70e466f
authored
Sep 27, 2012
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remote: add accessors for the autotag setting
parent
a37ddf7e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
include/git2/remote.h
+17
-0
src/remote.c
+10
-0
No files found.
include/git2/remote.h
View file @
f70e466f
...
@@ -310,6 +310,23 @@ enum {
...
@@ -310,6 +310,23 @@ enum {
GIT_REMOTE_DOWNLOAD_TAGS_AUTO
GIT_REMOTE_DOWNLOAD_TAGS_AUTO
};
};
/**
* Retrieve the tag auto-follow setting
*
* @param remote the remote to query
* @return the auto-follow setting
*/
GIT_EXTERN
(
int
)
git_remote_autotag
(
git_remote
*
remote
);
/**
* Set the tag auto-follow setting
*
* @param remote the remote to configure
* @param value a GIT_REMOTE_DOWNLOAD_TAGS value
*/
GIT_EXTERN
(
void
)
git_remote_set_autotag
(
git_remote
*
remote
,
int
value
);
/** @} */
/** @} */
GIT_END_DECL
GIT_END_DECL
#endif
#endif
src/remote.c
View file @
f70e466f
...
@@ -722,3 +722,13 @@ void git_remote_set_callbacks(git_remote *remote, git_remote_callbacks *callback
...
@@ -722,3 +722,13 @@ void git_remote_set_callbacks(git_remote *remote, git_remote_callbacks *callback
remote
->
transport
->
cb_data
=
remote
->
callbacks
.
data
;
remote
->
transport
->
cb_data
=
remote
->
callbacks
.
data
;
}
}
}
}
int
git_remote_autotag
(
git_remote
*
remote
)
{
return
remote
->
download_tags
;
}
void
git_remote_set_autotag
(
git_remote
*
remote
,
int
value
)
{
remote
->
download_tags
=
value
;
}
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