From 982916a05ab73f8ca113d45a6ddabcd09f481de5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 11 Feb 2019 22:22:43 +0300 Subject: Implement git repository working tree fix up for package checkout on Windows --- bpkg/fetch.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bpkg/fetch.hxx') diff --git a/bpkg/fetch.hxx b/bpkg/fetch.hxx index 2adbfe3..0ed473f 100644 --- a/bpkg/fetch.hxx +++ b/bpkg/fetch.hxx @@ -102,6 +102,19 @@ namespace bpkg const repository_location&, const dir_path&); + // Fix up or revert the fixes (including in submodules, recursively) in a + // working tree previously checked out by git_checkout() or + // git_checkout_submodules(). Return true if any changes have been made to + // the filesystem. + // + // Noop on POSIX. On Windows it may replace git's filesystem-agnostic + // symlinks with hardlinks for the file targets and junctions for the + // directory targets. Note that it still makes sure the working tree is + // being treated by git as "clean" despite the changes. + // + bool + git_fixup_worktree (const common_options&, const dir_path&, bool revert); + // Low-level fetch API (fetch.cxx). // -- cgit v1.1