diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-07-29 18:32:14 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-07-30 11:04:37 +0300 |
commit | 7490948f27d70df1f88ed161a2b758755d0a7929 (patch) | |
tree | 464099162afbf339c6cb502ba38d84ae0f9ced1e /bpkg/fetch.hxx | |
parent | aaf8e696886f443cd095ca7a5f37fc5b1ce0e207 (diff) |
Add support for checked out repository fragments caching
Diffstat (limited to 'bpkg/fetch.hxx')
-rw-r--r-- | bpkg/fetch.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bpkg/fetch.hxx b/bpkg/fetch.hxx index d57dcf3..33e5d55 100644 --- a/bpkg/fetch.hxx +++ b/bpkg/fetch.hxx @@ -105,15 +105,19 @@ namespace bpkg // 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. + // the filesystem. On error issue diagnostics and return nullopt in the + // ignore errors mode and throw failed otherwise. // // 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); + optional<bool> + git_fixup_worktree (const common_options&, + const dir_path&, + bool revert, + bool ignore_errors = false); // Low-level fetch API (fetch.cxx). // |