navid/veins / 12773c30368c8bcc65574524a87e49aa90bc76c1c3e2b6f6b15f8c77a20505aa / xveins/src/git.h

git.h

← xveins/src · 712 bytes · raw · download

#pragma once

#include "common.h"
#include "object.h"

#include <optional>
#include <string>
#include <vector>

namespace vn {

int git_import(const fs::path &root);
int git_export(const fs::path &root);
int git_materialize(const fs::path &root);
int git_fetch(const fs::path &root, std::string_view remote);
int git_push(const fs::path &root, std::string_view remote,
             std::string_view bookmark);
int git_prepare_mirror(const fs::path &root, std::string_view source);
std::optional<std::vector<std::uint8_t>> git_read_lazy_blob(const fs::path &root,
                                                            const Id &id);
int git_cli_run(const std::vector<std::string> &args);

} // namespace vn