navid/veins / 5c47896115dedf2087f6e19487b5b7faf53c7cde0d51c6702c16f7cfc30a1b97 / xveins/src/worktree.h

worktree.h

← xveins/src · 693 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);
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);
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