diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-02-11 22:22:43 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-02-15 15:13:45 +0300 |
commit | 982916a05ab73f8ca113d45a6ddabcd09f481de5 (patch) | |
tree | 98bfc8c17649459ea4dba487e92611da9cc7c534 /bpkg/fetch.hxx | |
parent | f1c95d45bd86180ef64da018b657461c44d0236a (diff) |
Implement git repository working tree fix up for package checkout on Windows
Diffstat (limited to 'bpkg/fetch.hxx')
-rw-r--r-- | bpkg/fetch.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
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). // |