aboutsummaryrefslogtreecommitdiff
path: root/bpkg/fetch.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/fetch.hxx')
-rw-r--r--bpkg/fetch.hxx13
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).
//