navid/veins / 8001ccbc234ab3479679a23a66b0fff347c6f6939e03b5ab60d12d941695716e / xveins/src/worktree/worktree.h
worktree.h
← xveins/src/worktree · 729 bytes · raw · download
#pragma once
#include "store/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);
std::optional<Id> create_working_copy_commit(Txn& tx, const Id& parent);
int checkout_materialize_commit(const fs::path& root, Store& store, std::optional<Id> old_root,
const Id& new_root, Progress* progress = nullptr);
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