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
5af61863
Commit
5af61863
authored
Sep 14, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkout: drop git_checkout_reference()
parent
c214fa1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
include/git2/checkout.h
+0
-16
src/checkout.c
+0
-20
No files found.
include/git2/checkout.h
View file @
5af61863
...
...
@@ -58,22 +58,6 @@ GIT_EXTERN(int) git_checkout_head(
git_indexer_stats
*
stats
);
/**
* Updates files in the index and the working tree to match the content of the
* commit pointed at by the reference.
*
*
* @param ref reference to follow to a commit
* @param opts specifies checkout options (may be NULL)
* @param stats structure through which progress information is reported
* @return 0 on success, GIT_ERROR otherwise (use giterr_last for information
* about the error)
*/
GIT_EXTERN
(
int
)
git_checkout_reference
(
git_reference
*
ref
,
git_checkout_opts
*
opts
,
git_indexer_stats
*
stats
);
/**
* Updates files in the working tree to match the content of the index.
*
* @param repo repository to check out (must be non-bare)
...
...
src/checkout.c
View file @
5af61863
...
...
@@ -358,23 +358,3 @@ int git_checkout_head(
return
error
;
}
int
git_checkout_reference
(
git_reference
*
ref
,
git_checkout_opts
*
opts
,
git_indexer_stats
*
stats
)
{
git_repository
*
repo
=
git_reference_owner
(
ref
);
git_reference
*
head
=
NULL
;
int
error
;
if
((
error
=
git_reference_create_symbolic
(
&
head
,
repo
,
GIT_HEAD_FILE
,
git_reference_name
(
ref
),
true
))
<
0
)
return
error
;
error
=
git_checkout_head
(
git_reference_owner
(
ref
),
opts
,
stats
);
git_reference_free
(
head
);
return
error
;
}
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