navid/veins / ce5d2696b2bf5da87c6bb709403e2b5463847e423c6fca2c20d78cd931d0c9a1 / xveins/src/worktree.h
worktree.h
← xveins/src · 654 bytes · raw · download
#pragma once
#include "store.h"
#include <optional>
#include <string>
namespace vn {
int snapshot_run(const fs::path &root);
int snapshot_run(const fs::path &root, Store &store);
int checkout_run(const fs::path &root, std::string_view rev);
int checkout_materialize_commit(const fs::path &root, Store &store,
std::optional<Id> old_root, const Id &new_root);
int checkout_materialize_optional(const fs::path &root, Store &store,
std::optional<Id> old_root,
std::optional<Id> new_root);
void clear_stat_cache(const fs::path &root);
} // namespace vn