FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
git2cpp/src/subcommand/checkout_subcommand.hpp at 0.0.12 · QuantStack/git2cpp · GitHub
QuantStack
git2cpp
Repository navigation
Code
Issues
6
(6)
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
git2cpp
/
src
/
subcommand
/
checkout_subcommand.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
53 lines (41 loc) · 1.33 KB
Breadcrumbs
git2cpp
/
src
/
subcommand
/
checkout_subcommand.hpp
Copy path
File metadata and controls
53 lines (41 loc) · 1.33 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
pragma
once
#
include
<
string
>
#
include
<
vector
>
#
include
<
CLI/CLI.hpp
>
#
include
"
../utils/common.hpp
"
#
include
"
../wrapper/repository_wrapper.hpp
"
class
checkout_subcommand
{
public:
explicit
checkout_subcommand
(
const
libgit2_object&,
CLI
::App& app);
void
run
();
private:
annotated_commit_wrapper
create_local_branch
(repository_wrapper& repo,
const
std::string_view target_name,
bool
force);
void
checkout_tree
(
const
repository_wrapper& repo,
const
annotated_commit_wrapper& target_annotated_commit,
const
std::string_view target_name,
const
git_checkout_options& options
);
void
update_head
(
repository_wrapper& repo,
const
annotated_commit_wrapper& target_annotated_commit,
const
std::string_view target_name
);
void
checkout_head_files
(
const
repository_wrapper& repo,
const
std::vector<std::string>& files,
const
git_checkout_options& options
);
void
checkout_ref_files
(
const
repository_wrapper& repo,
const
std::string_view tree_ish,
const
std::vector<std::string>& pathspecs,
const
git_checkout_options& options
);
std::vector<std::string> m_positional_args = {};
bool
m_create_flag =
false
;
bool
m_force_create_flag =
false
;
bool
m_force_checkout_flag =
false
;
};
Back
|
FazBrowse Home
|
New Git URL