diff options
Diffstat (limited to 'src/cmd_manipulate.cc')
-rw-r--r-- | src/cmd_manipulate.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd_manipulate.cc b/src/cmd_manipulate.cc index 9fc019e..2dff5e1 100644 --- a/src/cmd_manipulate.cc +++ b/src/cmd_manipulate.cc @@ -246,4 +246,10 @@ namespace cmd { utils::saveJson(*c, p); return text.str(); } + + std::string git(std::vector<std::string> args) { + std::string root = getTruePath("").string(); + std::system(("cd " + root + " && " + utils::join(args, " ")).c_str()); + return ""; + } } |