Debian Codegraph @

src/checkout/mod.rs

raw symbols SCIP
1 use bstrrust-analyzer cargo bstr 1.12.1 crate/::BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#;
2 use gix_indexrust-analyzer cargo gix-index 0.51.0 crate/::entryrust-analyzer cargo gix-index 0.51.0 entry/::statrust-analyzer cargo gix-index 0.51.0 entry/stat/;
3
4 /// Information about a path that failed to checkout as something else was already present.
5 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:, Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, PartialOrdrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd:)]
6 pub struct Collisionrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Collision# {
7 /// the path that collided with something already present on disk.
8 pub pathrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Collision#path.: BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#,
9 /// The io error we encountered when checking out `path`.
10 pub error_kindrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Collision#error_kind.: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::ErrorKindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#,
11 }
12
13 /// A path that encountered an IO error.
14 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
15 pub struct ErrorRecordrust-analyzer cargo gix-worktree-state 0.30.0 checkout/ErrorRecord# {
16 /// the path that encountered the error.
17 pub pathrust-analyzer cargo gix-worktree-state 0.30.0 checkout/ErrorRecord#path.: BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#,
18 /// The error
19 pub errorrust-analyzer cargo gix-worktree-state 0.30.0 checkout/ErrorRecord#error.: Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<dyn stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# + Syncrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sync# + 'static>,
20 }
21
22 /// The outcome of checking out an entire index.
23 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)]
24 pub struct Outcomerust-analyzer cargo gix-worktree-state 0.30.0 checkout/Outcome# {
25 /// The amount of files updated, or created.
26 pub files_updatedrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Outcome#files_updated.: usize,
27 /// The amount of bytes written to disk,
28 pub bytes_writtenrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Outcome#bytes_written.: u64,
29 /// The encountered collisions, which can happen on a case-insensitive filesystem.
30 pub collisionsrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Outcome#collisions.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Collisionrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Collision#>,
31 /// Other errors that happened during checkout.
32 pub errorsrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Outcome#errors.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<ErrorRecordrust-analyzer cargo gix-worktree-state 0.30.0 checkout/ErrorRecord#>,
33 /// Relative paths that the process listed as 'delayed' even though we never passed them.
34 pub delayed_paths_unknownrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Outcome#delayed_paths_unknown.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#>,
35 /// All paths that were left unprocessed, because they were never listed by the process even though we passed them.
36 pub delayed_paths_unprocessedrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Outcome#delayed_paths_unprocessed.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#>,
37 }
38
39 /// Options to further configure the checkout operation.
40 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)]
41 pub struct Optionsrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options# {
42 /// capabilities of the file system
43 pub fsrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#fs.: gix_fsrust-analyzer cargo gix-fs 0.21.0 crate/::Capabilitiesrust-analyzer cargo gix-fs 0.21.0 Capabilities#,
44 /// Options to configure how to validate path components.
45 pub validaterust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#validate.: gix_worktreerust-analyzer cargo gix-worktree 0.52.0 crate/::validaterust-analyzer cargo gix-validate 0.11.1 crate/::pathrust-analyzer cargo gix-validate 0.11.1 path/::componentrust-analyzer cargo gix-validate 0.11.1 path/component/::Optionsrust-analyzer cargo gix-validate 0.11.1 path/component/Options#,
46 /// If set, don't use more than this amount of threads.
47 /// Otherwise, usually use as many threads as there are logical cores.
48 /// A value of 0 is interpreted as no-limit
49 pub thread_limitrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#thread_limit.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<usize>,
50 /// If true, we assume no file to exist in the target directory, and want exclusive access to it.
51 /// This should be enabled when cloning to avoid checks for freshness of files. This also enables
52 /// detection of collisions based on whether or not exclusive file creation succeeds or fails.
53 pub destination_is_initially_emptyrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#destination_is_initially_empty.: bool,
54 /// If true, default false, worktree entries on disk will be overwritten with content from the index
55 /// even if they appear to be changed. When creating directories that clash with existing worktree entries,
56 /// these will try to delete the existing entry.
57 /// This is similar in behaviour as `git checkout --force`.
58 pub overwrite_existingrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#overwrite_existing.: bool,
59 /// If true, default false, try to checkout as much as possible and don't abort on first error which isn't
60 /// due to a conflict.
61 /// The checkout operation will never fail, but count the encountered errors instead along with their paths.
62 pub keep_goingrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#keep_going.: bool,
63 /// Control how stat comparisons are made when checking if a file is fresh.
64 pub stat_optionsrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#stat_options.: statrust-analyzer cargo gix-index 0.51.0 entry/stat/::Optionsrust-analyzer cargo gix-index 0.51.0 entry/stat/Options#,
65 /// A stack of attributes to use with the filesystem cache to use as driver for filters.
66 pub attributesrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#attributes.: gix_worktreerust-analyzer cargo gix-worktree 0.52.0 crate/::stackrust-analyzer cargo gix-worktree 0.52.0 stack/::staterust-analyzer cargo gix-worktree 0.52.0 stack/state/::Attributesrust-analyzer cargo gix-worktree 0.52.0 stack/state/Attributes#,
67 /// The filter pipeline to use for applying mandatory filters before writing to the worktree.
68 pub filtersrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#filters.: gix_filterrust-analyzer cargo gix-filter 0.30.0 crate/::Pipelinerust-analyzer cargo gix-filter 0.30.0 Pipeline#,
69 /// Control how long-running processes may use the 'delay' capability.
70 pub filter_process_delayrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Options#filter_process_delay.: gix_filterrust-analyzer cargo gix-filter 0.30.0 crate/::driverrust-analyzer cargo gix-filter 0.30.0 driver/::applyrust-analyzer cargo gix-filter 0.30.0 driver/apply/::Delayrust-analyzer cargo gix-filter 0.30.0 driver/apply/Delay#,
71 }
72
73 /// The error returned by the [checkout()][crate::checkout()] function.
74 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, thiserrorrust-analyzer cargo thiserror 2.0.18 crate/::Errorrust-analyzer cargo thiserror-impl 2.0.18 Error:)]
75 #[allow(missing_docs)]
76 pub enum Errorrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error# {
77 #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:("Could not convert path to UTF8: {}", .path)]
78 IllformedUtf8rust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#IllformedUtf8# { pathrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#IllformedUtf8#path.: BStringrust-analyzer cargo bstr 1.12.1 bstring/BString# },
79 #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:("The clock was off when reading file related metadata after updating a file on disk")]
80 Timerust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#Time#(#[from] stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::timerust-analyzer cargo std https://github.com/rust-lang/rust/library/std time/::SystemTimeErrorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std time/SystemTimeError#),
81 #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:("IO error while writing blob or reading file metadata or changing filetype")]
82 Iorust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#Io#(#[from] stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#),
83 #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:("object for checkout at {} could not be retrieved from object database", .path.displayrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]display().())]
84 Findrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#Find# {
85 #[source]
86 errrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#Find#err.: gix_objectrust-analyzer cargo gix-object 0.60.0 crate/::findrust-analyzer cargo gix-object 0.60.0 find/::existing_objectrust-analyzer cargo gix-object 0.60.0 find/existing_object/::Errorrust-analyzer cargo gix-object 0.60.0 find/existing_object/Error#,
87 pathrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#Find#path.: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#,
88 },
89 #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:(transparent)]
90 Filterrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#Filter#(#[from] gix_filterrust-analyzer cargo gix-filter 0.30.0 crate/::pipelinerust-analyzer cargo gix-filter 0.30.0 pipeline/::convertrust-analyzer cargo gix-filter 0.30.0 pipeline/convert/::to_worktreerust-analyzer cargo gix-filter 0.30.0 pipeline/convert/to_worktree/::Errorrust-analyzer cargo gix-filter 0.30.0 pipeline/convert/to_worktree/Error#),
91 #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:(transparent)]
92 FilterListDelayedrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#FilterListDelayed#(#[from] gix_filterrust-analyzer cargo gix-filter 0.30.0 crate/::driverrust-analyzer cargo gix-filter 0.30.0 driver/::delayedrust-analyzer cargo gix-filter 0.30.0 driver/delayed/::listrust-analyzer cargo gix-filter 0.30.0 driver/delayed/list/::Errorrust-analyzer cargo gix-filter 0.30.0 driver/delayed/list/Error#),
93 #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:(transparent)]
94 FilterFetchDelayedrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#FilterFetchDelayed#(#[from] gix_filterrust-analyzer cargo gix-filter 0.30.0 crate/::driverrust-analyzer cargo gix-filter 0.30.0 driver/::delayedrust-analyzer cargo gix-filter 0.30.0 driver/delayed/::fetchrust-analyzer cargo gix-filter 0.30.0 driver/delayed/fetch/::Errorrust-analyzer cargo gix-filter 0.30.0 driver/delayed/fetch/Error#),
95 #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:("The entry at path '{rela_path}' was listed as delayed by the filter process, but we never passed it")]
96 FilterPathUnknownrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#FilterPathUnknown# { rela_pathrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#FilterPathUnknown#rela_path.: BStringrust-analyzer cargo bstr 1.12.1 bstring/BString# },
97 #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:("The following paths were delayed and apparently forgotten to be processed by the filter driver: ")]
98 FilterPathsUnprocessedrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#FilterPathsUnprocessed# { rela_pathsrust-analyzer cargo gix-worktree-state 0.30.0 checkout/Error#FilterPathsUnprocessed#rela_paths.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#> },
99 }
100
101 mod chunkrust-analyzer cargo gix-worktree-state 0.30.0 checkout/chunk/;
102 mod entryrust-analyzer cargo gix-worktree-state 0.30.0 checkout/entry/;
103 pub(craterust-analyzer cargo gix-worktree-state 0.30.0 crate/) mod functionrust-analyzer cargo gix-worktree-state 0.30.0 checkout/function/;