forked from nodegit/nodegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlfs_cmd.cc
More file actions
36 lines (31 loc) · 731 Bytes
/
lfs_cmd.cc
File metadata and controls
36 lines (31 loc) · 731 Bytes
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
#include "../include/lfs_cmd.h"
const char* nodegit::LfsCmd::kStrLfsCmd = "git lfs";
/**
* LfsCmd::LfsCmd
*
* Constructor from type and options.
*/
nodegit::LfsCmd::LfsCmd(Type lfsCmdType, std::unique_ptr<nodegit::LfsCmdOpts> &&opts) :
m_lfsCmdType(lfsCmdType), m_opts(std::move(opts)) {
}
/**
* nodegit::LfsCmd::Command
*
* \return string with LFS command to execute.
*/
std::string nodegit::LfsCmd::Command() const {
std::string strCmd {nodegit::LfsCmd::kStrLfsCmd};
switch (m_lfsCmdType) {
default:
break;
}
return strCmd;
}
/**
* nodegit::LfsCmd::Args
*
* \return string with arguments for this LFS command.
*/
std::string nodegit::LfsCmd::Args() const {
return m_opts->BuildArgs();
}