History

Merge pull request #1248 from joshtriplett/tyop

Typo fixes

Sebastian Thiel committed 2 years ago

Commit 39f35da2 parents 1ba9488 3ef3bc239 files · +47 −47Browse files

Unified · Split

39 files
  1. gitoxide-core/src/corpus/db.rs +1 −1
  2. gitoxide-core/src/repository/commitgraph/list.rs +1 −1
  3. gitoxide-core/src/repository/fsck.rs +1 −1
  4. gitoxide-core/src/repository/revision/list.rs +1 −1
  5. gix-command/src/lib.rs +1 −1
  6. gix-commitgraph/src/file/access.rs +3 −3
  7. gix-config-value/fuzz/fuzz_targets/fuzz_value.rs +1 −1
  8. gix-diff/src/blob/platform.rs +2 −2
  9. gix-diff/tests/fixtures/generated-archives/make_diff_repo.tar.xz +0 −0
  10. gix-features/src/interrupt.rs +2 −2
  11. gix-filter/src/driver/shutdown.rs +1 −1
  12. gix-filter/src/pipeline/convert.rs +1 −1
  13. gix-filter/src/pipeline/mod.rs +1 −1
  14. gix-filter/tests/eol/convert_to_git.rs +1 −1
  15. gix-index/src/extension/mod.rs +1 −1
  16. gix-index/src/fs.rs +1 −1
  17. gix-index/src/write.rs +1 −1
  18. gix-odb/src/store_impls/dynamic/verify.rs +1 −1
  19. gix-pack/src/cache/object.rs +1 −1
  20. gix-pathspec/src/search/mod.rs +1 −1
  21. gix-sec/src/identity.rs +1 −1
  22. gix-status/src/lib.rs +1 −1
  23. gix-status/tests/status/index_as_worktree.rs +2 −2
  24. gix-trace/src/enabled.rs +1 −1
  25. gix-trace/src/lib.rs +1 −1
  26. gix-traverse/src/tree/mod.rs +1 −1
  27. gix-url/tests/baseline.rs +1 −1
  28. gix-url/tests/parse/file.rs +1 −1
  29. gix/Cargo.toml +4 −4
  30. gix/src/assets/init/info/exclude +1 −1
  31. gix/src/config/mod.rs +2 −2
  32. gix/src/interrupt.rs +1 −1
  33. gix/src/object/tree/mod.rs +2 −2
  34. gix/src/repository/config/branch.rs +1 −1
  35. gix/src/types.rs +1 −1
  36. gix/tests/remote/fetch.rs +1 −1
  37. gix/tests/repository/config/remote.rs +1 −1
  38. src/lib.rs +1 −1
  39. src/plumbing/options/mod.rs +1 −1
gitoxide-core/src/corpus/db.rs+1−1
@@ -131,7 +131,7 @@ pub fn create(path: impl AsRef<std::path::Path>) -> anyhow::Result<rusqlite::Con · 130 unmodified lines
131 task integer,131 task integer,
132 gitoxide_version integer,132 gitoxide_version integer,
133 insertion_time integer NOT NULL, -- in seconds since UNIX epoch133 insertion_time integer NOT NULL, -- in seconds since UNIX epoch
134 duration real, -- in seconds or NULL if not yet finished (either successfull or with failure)134 duration real, -- in seconds or NULL if not yet finished (either successful or with failure)
135 error text, -- or NULL if there was no error135 error text, -- or NULL if there was no error
136 spans_json text, -- all spans collecteted while performing the run136 spans_json text, -- all spans collecteted while performing the run
137 FOREIGN KEY (repository) REFERENCES repository (id),137 FOREIGN KEY (repository) REFERENCES repository (id),
gitoxide-core/src/repository/commitgraph/list.rs+1−1
@@ -27,7 +27,7 @@ pub(crate) mod function { · 26 unmodified lines
27 let commits = id27 let commits = id
28 .object()?28 .object()?
29 .peel_to_kind(gix::object::Kind::Commit)29 .peel_to_kind(gix::object::Kind::Commit)
30 .context("Need commitish as starting point")?30 .context("Need committish as starting point")?
31 .id()31 .id()
32 .ancestors()32 .ancestors()
33 .sorting(Sorting::ByCommitTimeNewestFirst)33 .sorting(Sorting::ByCommitTimeNewestFirst)
gitoxide-core/src/repository/fsck.rs+1−1
@@ -14,7 +14,7 @@ pub fn function(mut repo: gix::Repository, spec: Option<String>, mut out: impl s · 13 unmodified lines
14 let commits: gix::revision::Walk<'_> = id14 let commits: gix::revision::Walk<'_> = id
15 .object()?15 .object()?
16 .peel_to_kind(gix::object::Kind::Commit)16 .peel_to_kind(gix::object::Kind::Commit)
17 .context("Need commitish as starting point")?17 .context("Need committish as starting point")?
18 .id()18 .id()
19 .ancestors()19 .ancestors()
20 .all()?;20 .all()?;
gitoxide-core/src/repository/revision/list.rs+1−1
@@ -49,7 +49,7 @@ pub(crate) mod function { · 48 unmodified lines
49 let commits = id49 let commits = id
50 .object()?50 .object()?
51 .peel_to_kind(gix::object::Kind::Commit)51 .peel_to_kind(gix::object::Kind::Commit)
52 .context("Need commitish as starting point")?52 .context("Need committish as starting point")?
53 .id()53 .id()
54 .ancestors()54 .ancestors()
55 .sorting(Sorting::ByCommitTimeNewestFirst)55 .sorting(Sorting::ByCommitTimeNewestFirst)
gix-command/src/lib.rs+1−1
@@ -86,7 +86,7 @@ mod prepare { · 85 unmodified lines
86 86
87 /// Builder87 /// Builder
88 impl Prepare {88 impl Prepare {
89 /// If called, the command will not be executed directly, but with `sh`, but ony if the89 /// If called, the command will not be executed directly, but with `sh`, but only if the
90 /// command passed to [`prepare`](super::prepare()) requires this.90 /// command passed to [`prepare`](super::prepare()) requires this.
91 ///91 ///
92 /// This also allows to pass shell scripts as command, or use commands that contain arguments which are subsequently92 /// This also allows to pass shell scripts as command, or use commands that contain arguments which are subsequently
gix-commitgraph/src/file/access.rs+3−3
@@ -16,7 +16,7 @@ impl File { · 15 unmodified lines
16 self.base_graph_count16 self.base_graph_count
17 }17 }
18 18
19 /// Returns the commit data for the commit located at the given lexigraphical position.19 /// Returns the commit data for the commit located at the given lexicographical position.
20 ///20 ///
21 /// `pos` must range from 0 to `self.num_commits()`.21 /// `pos` must range from 0 to `self.num_commits()`.
22 ///22 ///
@@ -40,7 +40,7 @@ impl File { · 17 unmodified lines
40 pub fn id_at(&self, pos: file::Position) -> &gix_hash::oid {40 pub fn id_at(&self, pos: file::Position) -> &gix_hash::oid {
41 assert!(41 assert!(
42 pos.0 < self.num_commits(),42 pos.0 < self.num_commits(),
43 "expected lexigraphical position less than {}, got {}",43 "expected lexicographical position less than {}, got {}",
44 self.num_commits(),44 self.num_commits(),
45 pos.045 pos.0
46 );46 );
@@ -115,7 +115,7 @@ impl File { · 68 unmodified lines
115 pub(crate) fn commit_data_bytes(&self, pos: file::Position) -> &[u8] {115 pub(crate) fn commit_data_bytes(&self, pos: file::Position) -> &[u8] {
116 assert!(116 assert!(
117 pos.0 < self.num_commits(),117 pos.0 < self.num_commits(),
118 "expected lexigraphical position less than {}, got {}",118 "expected lexicographical position less than {}, got {}",
119 self.num_commits(),119 self.num_commits(),
120 pos.0120 pos.0
121 );121 );
gix-config-value/fuzz/fuzz_targets/fuzz_value.rs+1−1
@@ -47,7 +47,7 @@ fn fuzz(ctx: Ctx) -> Result<()> { · 46 unmodified lines
47 47
48fuzz_target!(|ctx: Ctx| {48fuzz_target!(|ctx: Ctx| {
49 if let Err(e) = fuzz(ctx) {49 if let Err(e) = fuzz(ctx) {
50 // Excersize display/debug fmt code.50 // Exercise display/debug fmt code.
51 _ = black_box(format!("{e} {e:?}"));51 _ = black_box(format!("{e} {e:?}"));
52 }52 }
53});53});
gix-diff/src/blob/platform.rs+2−2
@@ -193,7 +193,7 @@ pub mod prepare_diff { · 192 unmodified lines
193 /// is `false`.193 /// is `false`.
194 ///194 ///
195 /// Use [`Outcome::interned_input()`] to easily obtain an interner for use with [`imara_diff::diff()`], or maintain one yourself195 /// Use [`Outcome::interned_input()`] to easily obtain an interner for use with [`imara_diff::diff()`], or maintain one yourself
196 /// for greater re-use.196 /// for greater reuse.
197 InternalDiff {197 InternalDiff {
198 /// The algorithm we determined should be used, which is one of (in order, first set one wins):198 /// The algorithm we determined should be used, which is one of (in order, first set one wins):
199 ///199 ///
@@ -349,7 +349,7 @@ impl Platform { · 149 unmodified lines
349 ///349 ///
350 /// ### Important350 /// ### Important
351 ///351 ///
352 /// If an error occours, the previous resource of `kind` will be cleared, preventing further diffs352 /// If an error occurs, the previous resource of `kind` will be cleared, preventing further diffs
353 /// unless another attempt succeeds.353 /// unless another attempt succeeds.
354 pub fn set_resource(354 pub fn set_resource(
355 &mut self,355 &mut self,
gix-diff/tests/fixtures/generated-archives/make_diff_repo.tar.xz+0−0

Binary file not shown.

gix-features/src/interrupt.rs+2−2
@@ -89,7 +89,7 @@ where · 88 unmodified lines
89 }89 }
90}90}
91 91
92/// A wrapper for implementors of [`std::io::Read`] or [`std::io::BufRead`] with interrupt support.92/// A wrapper for implementers of [`std::io::Read`] or [`std::io::BufRead`] with interrupt support.
93///93///
94/// It fails a [read][std::io::Read::read] while an interrupt was requested.94/// It fails a [read][std::io::Read::read] while an interrupt was requested.
95pub struct Read<'a, R> {95pub struct Read<'a, R> {
@@ -124,7 +124,7 @@ where · 28 unmodified lines
124 }124 }
125}125}
126 126
127/// A wrapper for implementors of [`std::io::Write`] with interrupt checks on each write call.127/// A wrapper for implementers of [`std::io::Write`] with interrupt checks on each write call.
128///128///
129/// It fails a [write][std::io::Write::write] while an interrupt was requested.129/// It fails a [write][std::io::Write::write] while an interrupt was requested.
130pub struct Write<'a, W> {130pub struct Write<'a, W> {
gix-filter/src/driver/shutdown.rs+1−1
@@ -14,7 +14,7 @@ pub enum Mode { · 13 unmodified lines
14 14
15/// Lifecycle15/// Lifecycle
16impl State {16impl State {
17 /// Handle long-running processes according to `mode`. If an error occours, all remaining processes will be ignored automatically.17 /// Handle long-running processes according to `mode`. If an error occurs, all remaining processes will be ignored automatically.
18 /// Return a list of `(process, Option<status>)`18 /// Return a list of `(process, Option<status>)`
19 pub fn shutdown(self, mode: Mode) -> Result<Vec<(BString, Option<std::process::ExitStatus>)>, std::io::Error> {19 pub fn shutdown(self, mode: Mode) -> Result<Vec<(BString, Option<std::process::ExitStatus>)>, std::io::Error> {
20 let mut out = Vec::with_capacity(self.running.len());20 let mut out = Vec::with_capacity(self.running.len());
gix-filter/src/pipeline/convert.rs+1−1
@@ -242,7 +242,7 @@ pub enum ToGitOutcome<'pipeline, R> { · 241 unmodified lines
242///242///
243/// ### Panics243/// ### Panics
244///244///
245/// If `std::io::Read` is used on it and the output is delayed, a panic will occour. The caller is responsible for either disallowing delayed245/// If `std::io::Read` is used on it and the output is delayed, a panic will occur. The caller is responsible for either disallowing delayed
246/// results or if allowed, handle them. Use [`is_delayed()][Self::is_delayed()].246/// results or if allowed, handle them. Use [`is_delayed()][Self::is_delayed()].
247pub enum ToWorktreeOutcome<'input, 'pipeline> {247pub enum ToWorktreeOutcome<'input, 'pipeline> {
248 /// The original input wasn't changed and the original buffer is present248 /// The original input wasn't changed and the original buffer is present
gix-filter/src/pipeline/mod.rs+1−1
@@ -103,7 +103,7 @@ impl Pipeline { · 102 unmodified lines
103 &mut self.options103 &mut self.options
104 }104 }
105 105
106 /// Return our double-buffers for re-use by the caller.106 /// Return our double-buffers for reuse by the caller.
107 pub fn buffers_mut(&mut self) -> &mut gix_utils::Buffers {107 pub fn buffers_mut(&mut self) -> &mut gix_utils::Buffers {
108 &mut self.bufs108 &mut self.bufs
109 }109 }
gix-filter/tests/eol/convert_to_git.rs+1−1
@@ -101,7 +101,7 @@ fn crlf_in_index_prevents_conversion_to_lf() -> crate::Result { · 100 unmodified lines
101 let mut buf = Vec::new();101 let mut buf = Vec::new();
102 let mut called = false;102 let mut called = false;
103 let changed = eol::convert_to_git(103 let changed = eol::convert_to_git(
104 b"elligible\n",104 b"eligible\n",
105 AttributesDigest::TextAutoInput,105 AttributesDigest::TextAutoInput,
106 &mut buf,106 &mut buf,
107 &mut |buf| {107 &mut |buf| {
gix-index/src/extension/mod.rs+1−1
@@ -16,7 +16,7 @@ pub struct Iter<'a> { · 15 unmodified lines
16 16
17/// A structure to associate object ids of a tree with sections in the index entries list.17/// A structure to associate object ids of a tree with sections in the index entries list.
18///18///
19/// It allows to more quickly build trees by avoiding as it can quickly re-use portions of the index and its associated tree ids19/// It allows to more quickly build trees by avoiding as it can quickly reuse portions of the index and its associated tree ids
20/// if there was no change to them. Portions of this tree are invalidated as the index is changed.20/// if there was no change to them. Portions of this tree are invalidated as the index is changed.
21#[derive(PartialEq, Eq, Clone, Debug)]21#[derive(PartialEq, Eq, Clone, Debug)]
22pub struct Tree {22pub struct Tree {
gix-index/src/fs.rs+1−1
@@ -73,7 +73,7 @@ impl Metadata { · 72 unmodified lines
73 73
74 /// Return the time at which the underlying file was created.74 /// Return the time at which the underlying file was created.
75 ///75 ///
76 /// Note that this differes from [`std::fs::Metadata::created()`] which would return76 /// Note that this differs from [`std::fs::Metadata::created()`] which would return
77 /// the inode birth time, which is notably different to what `git` does.77 /// the inode birth time, which is notably different to what `git` does.
78 pub fn created(&self) -> Option<SystemTime> {78 pub fn created(&self) -> Option<SystemTime> {
79 #[cfg(not(windows))]79 #[cfg(not(windows))]
gix-index/src/write.rs+1−1
@@ -5,7 +5,7 @@ use crate::{entry, extension, write::util::CountBytes, State, Version}; · 4 unmodified lines
5/// A way to specify which of the optional extensions to write.5/// A way to specify which of the optional extensions to write.
6#[derive(Default, Debug, Copy, Clone)]6#[derive(Default, Debug, Copy, Clone)]
7pub enum Extensions {7pub enum Extensions {
8 /// Writes all available optional extensions to avoid loosing any information.8 /// Writes all available optional extensions to avoid losing any information.
9 #[default]9 #[default]
10 All,10 All,
11 /// Only write the given optional extensions, with each extension being marked by a boolean flag.11 /// Only write the given optional extensions, with each extension being marked by a boolean flag.
gix-odb/src/store_impls/dynamic/verify.rs+1−1
@@ -66,7 +66,7 @@ pub mod integrity { · 65 unmodified lines
66 #[derive(Debug, PartialEq, Eq, Hash, Ord, PartialOrd, Clone)]66 #[derive(Debug, PartialEq, Eq, Hash, Ord, PartialOrd, Clone)]
67 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]67 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
68 pub struct IndexStatistics {68 pub struct IndexStatistics {
69 /// The path to the index or multi-pack index for which statics were gathered.69 /// The path to the index or multi-pack index for which statistics were gathered.
70 pub path: PathBuf,70 pub path: PathBuf,
71 /// The actual statistics for the index at `path`.71 /// The actual statistics for the index at `path`.
72 pub statistics: SingleOrMultiStatistics,72 pub statistics: SingleOrMultiStatistics,
gix-pack/src/cache/object.rs+1−1
@@ -1,4 +1,4 @@
1//! This module is a bit 'misplaced' if spelled out like '`gix_pack::cache::object::`*' but is best placed here for code re-use and1//! This module is a bit 'misplaced' if spelled out like '`gix_pack::cache::object::`*' but is best placed here for code reuse and
2//! general usefulness.2//! general usefulness.
3use crate::cache;3use crate::cache;
4 4
gix-pathspec/src/search/mod.rs+1−1
@@ -31,7 +31,7 @@ impl Search { · 30 unmodified lines
31 /// there is none. It doesn't have to end at a directory boundary though, nor does it denote a directory.31 /// there is none. It doesn't have to end at a directory boundary though, nor does it denote a directory.
32 ///32 ///
33 /// Note that the common_prefix is always matched case-sensitively, and it is useful to skip large portions of input.33 /// Note that the common_prefix is always matched case-sensitively, and it is useful to skip large portions of input.
34 /// Further, excluded pathspecs don't participate which makes this common prefix inclusive. To work correclty though,34 /// Further, excluded pathspecs don't participate which makes this common prefix inclusive. To work correctly though,
35 /// one will have to additionally match paths that have the common prefix with that pathspec itself to assure it is35 /// one will have to additionally match paths that have the common prefix with that pathspec itself to assure it is
36 /// not excluded.36 /// not excluded.
37 pub fn common_prefix(&self) -> &BStr {37 pub fn common_prefix(&self) -> &BStr {
gix-sec/src/identity.rs+1−1
@@ -133,7 +133,7 @@ mod impl_ { · 132 unmodified lines
133 // Admin-group owned folders are considered owned by the current user, if they are in the admin group133 // Admin-group owned folders are considered owned by the current user, if they are in the admin group
134 if !is_owned && IsWellKnownSid(token_owner, WinBuiltinAdministratorsSid).as_bool() {134 if !is_owned && IsWellKnownSid(token_owner, WinBuiltinAdministratorsSid).as_bool() {
135 let mut is_member = BOOL::default();135 let mut is_member = BOOL::default();
136 // TODO: re-use the handle136 // TODO: reuse the handle
137 match CheckTokenMembership(HANDLE::default(), token_owner, &mut is_member) {137 match CheckTokenMembership(HANDLE::default(), token_owner, &mut is_member) {
138 Err(e) => {138 Err(e) => {
139 err_msg = Some(format!("Couldn't check if user is an administrator: {}", e))139 err_msg = Some(format!("Couldn't check if user is an administrator: {}", e))
gix-status/src/lib.rs+1−1
@@ -19,7 +19,7 @@ pub trait Pathspec { · 18 unmodified lines
19 /// there is none. It doesn't have to end at a directory boundary though, nor does it denote a directory.19 /// there is none. It doesn't have to end at a directory boundary though, nor does it denote a directory.
20 ///20 ///
21 /// Note that the common_prefix is always matched case-sensitively, and it is useful to skip large portions of input.21 /// Note that the common_prefix is always matched case-sensitively, and it is useful to skip large portions of input.
22 /// Further, excluded pathspecs don't participate which makes this common prefix inclusive. To work correclty though,22 /// Further, excluded pathspecs don't participate which makes this common prefix inclusive. To work correctly though,
23 /// one will have to additionally match paths that have the common prefix with that pathspec itself to assure it is23 /// one will have to additionally match paths that have the common prefix with that pathspec itself to assure it is
24 /// not excluded.24 /// not excluded.
25 fn common_prefix(&self) -> &BStr;25 fn common_prefix(&self) -> &BStr;
gix-status/tests/status/index_as_worktree.rs+2−2
@@ -68,7 +68,7 @@ fn fixture_filtered_detailed( · 67 unmodified lines
68 mut prepare_index: impl FnMut(&mut gix_index::State),68 mut prepare_index: impl FnMut(&mut gix_index::State),
69 submodule_dirty: bool,69 submodule_dirty: bool,
70) -> Outcome {70) -> Outcome {
71 // This can easily happen in some fixtures, which can cause flakyness. It's time-dependent after all.71 // This can easily happen in some fixtures, which can cause flakiness. It's time-dependent after all.
72 fn ignore_racyclean(mut out: Outcome) -> Outcome {72 fn ignore_racyclean(mut out: Outcome) -> Outcome {
73 out.racy_clean = 0;73 out.racy_clean = 0;
74 out74 out
@@ -116,7 +116,7 @@ fn fixture_filtered_detailed( · 41 unmodified lines
116 ignore_racyclean(ignore_updated(ignore_worktree_stats(outcome)))116 ignore_racyclean(ignore_updated(ignore_worktree_stats(outcome)))
117}117}
118 118
119/// Note that we also reset certain information to assure there is no flakyness - everything regarding race-detection otherwise can cause failures.119/// Note that we also reset certain information to assure there is no flakiness - everything regarding race-detection otherwise can cause failures.
120fn records_to_tuple<'index>(records: impl IntoIterator<Item = Record<'index, (), ()>>) -> Vec<Expectation<'index>> {120fn records_to_tuple<'index>(records: impl IntoIterator<Item = Record<'index, (), ()>>) -> Vec<Expectation<'index>> {
121 records121 records
122 .into_iter()122 .into_iter()
gix-trace/src/enabled.rs+1−1
@@ -264,7 +264,7 @@ macro_rules! fieldset { · 263 unmodified lines
264 $crate::fieldset!(@ { $($out),*, $k } $($rest)*)264 $crate::fieldset!(@ { $($out),*, $k } $($rest)*)
265 };265 };
266 266
267 // Remainder is unparseable, but exists --- must be format args!267 // Remainder is unparsable, but exists --- must be format args!
268 (@ { $(,)* $($out:expr),* } $($rest:tt)+) => {268 (@ { $(,)* $($out:expr),* } $($rest:tt)+) => {
269 $crate::fieldset!(@ { "message", $($out),*, })269 $crate::fieldset!(@ { "message", $($out),*, })
270 };270 };
gix-trace/src/lib.rs+1−1
@@ -1,4 +1,4 @@
1//! A crate providing macros for creating spans in various detail levels. `coarse!` shoudl be used for top-level operations, whereas1//! A crate providing macros for creating spans in various detail levels. `coarse!` should be used for top-level operations, whereas
2//! `detail!` should be used in plumbing crates unless their operations are likely to cost a lot of time.2//! `detail!` should be used in plumbing crates unless their operations are likely to cost a lot of time.
3//!3//!
4//! The application is supposed to explicitly turn on tracing via `gix-features`.4//! The application is supposed to explicitly turn on tracing via `gix-features`.
gix-traverse/src/tree/mod.rs+1−1
@@ -47,7 +47,7 @@ pub mod visit { · 46 unmodified lines
47 pub enum Action {47 pub enum Action {
48 /// Continue the traversal of entries.48 /// Continue the traversal of entries.
49 Continue,49 Continue,
50 /// Stop the traversal of entries, making this te last call to [`visit_(tree|nontree)(…)`][super::Visit::visit_nontree()].50 /// Stop the traversal of entries, making this the last call to [`visit_(tree|nontree)(…)`][super::Visit::visit_nontree()].
51 Cancel,51 Cancel,
52 /// Don't dive into the entry, skipping children effectively. Only useful in [`visit_tree(…)`][super::Visit::visit_tree()].52 /// Don't dive into the entry, skipping children effectively. Only useful in [`visit_tree(…)`][super::Visit::visit_tree()].
53 Skip,53 Skip,
gix-url/tests/baseline.rs+1−1
@@ -50,7 +50,7 @@ fn run() { · 49 unmodified lines
50 50
51 assert_ne!(test_count, 0, "the baseline is never empty");51 assert_ne!(test_count, 0, "the baseline is never empty");
52 if failures.is_empty() {52 if failures.is_empty() {
53 todo!("The baseline is currently meddling with hooks, thats not needed anymore since the failure rate is 0: move this into a module of the normal tests");53 todo!("The baseline is currently meddling with hooks, that's not needed anymore since the failure rate is 0: move this into a module of the normal tests");
54 }54 }
55 55
56 let failure_count = failures.len();56 let failure_count = failures.len();
gix-url/tests/parse/file.rs+1−1
@@ -102,7 +102,7 @@ fn no_relative_paths_if_protocol() -> crate::Result { · 101 unmodified lines
102 assert_matches::assert_matches!(102 assert_matches::assert_matches!(
103 gix_url::parse("file://.\\".into()),103 gix_url::parse("file://.\\".into()),
104 Err(gix_url::parse::Error::MissingRepositoryPath { .. }),104 Err(gix_url::parse::Error::MissingRepositoryPath { .. }),
105 "DEVIATION: on windows, this parses with git into something nonesensical Diag: url=file://./ Diag: protocol=file Diag: hostandport=./ Diag: path=//./"105 "DEVIATION: on windows, this parses with git into something nonsensical Diag: url=file://./ Diag: protocol=file Diag: hostandport=./ Diag: path=//./"
106 );106 );
107 }107 }
108 Ok(())108 Ok(())
gix/Cargo.toml+4−4
@@ -26,7 +26,7 @@ default = ["max-performance-safe", "comfort", "basic", "extras"] · 25 unmodified lines
26#! enabled as long as it doesn't sacrifice compatibility. Most users will be fine with that but will pay with higher compile times than necessary as they26#! enabled as long as it doesn't sacrifice compatibility. Most users will be fine with that but will pay with higher compile times than necessary as they
27#! probably don't use all of these features.27#! probably don't use all of these features.
28#!28#!
29#! **Thus it's recommended to take a moment and optimize build times by chosing only those 'Components' that you require.** *'Performance' relevant features should29#! **Thus it's recommended to take a moment and optimize build times by choosing only those 'Components' that you require.** *'Performance' relevant features should
30#! be chosen next to maximize efficiency.*30#! be chosen next to maximize efficiency.*
31#!31#!
32#! #### Application Developers32#! #### Application Developers
@@ -121,11 +121,11 @@ async-network-client = ["gix-protocol/async-client", "gix-pack/streaming-input", · 88 unmodified lines
121async-network-client-async-std = ["async-std", "async-network-client", "gix-transport/async-std"]121async-network-client-async-std = ["async-std", "async-network-client", "gix-transport/async-std"]
122## Make `gix-protocol` available along with a blocking client, providing access to the `file://`, git://` and `ssh://` transports.122## Make `gix-protocol` available along with a blocking client, providing access to the `file://`, git://` and `ssh://` transports.
123blocking-network-client = ["gix-protocol/blocking-client", "gix-pack/streaming-input", "attributes", "credentials"]123blocking-network-client = ["gix-protocol/blocking-client", "gix-pack/streaming-input", "attributes", "credentials"]
124## Stacks with `blocking-network-client` to provide support for HTTP/S using **curl**, and implies blocking networking as a whole, making the `https://` transport avaialble.124## Stacks with `blocking-network-client` to provide support for HTTP/S using **curl**, and implies blocking networking as a whole, making the `https://` transport available.
125blocking-http-transport-curl = ["blocking-network-client", "gix-transport/http-client-curl"]125blocking-http-transport-curl = ["blocking-network-client", "gix-transport/http-client-curl"]
126## Stacks with `blocking-http-transport-curl` and also enables the `rustls` backend to avoid `openssl`.126## Stacks with `blocking-http-transport-curl` and also enables the `rustls` backend to avoid `openssl`.
127blocking-http-transport-curl-rustls = ["blocking-http-transport-curl", "dep:curl-for-configuration-only", "curl-for-configuration-only?/rustls"]127blocking-http-transport-curl-rustls = ["blocking-http-transport-curl", "dep:curl-for-configuration-only", "curl-for-configuration-only?/rustls"]
128## Stacks with `blocking-network-client` to provide support for HTTP/S using **reqwest**, and implies blocking networking as a whole, making the `https://` transport avaialble.128## Stacks with `blocking-network-client` to provide support for HTTP/S using **reqwest**, and implies blocking networking as a whole, making the `https://` transport available.
129blocking-http-transport-reqwest = ["blocking-network-client", "gix-transport/http-client-reqwest"]129blocking-http-transport-reqwest = ["blocking-network-client", "gix-transport/http-client-reqwest"]
130## Stacks with `blocking-http-transport-reqwest` and enables `https://` via the `rustls` crate.130## Stacks with `blocking-http-transport-reqwest` and enables `https://` via the `rustls` crate.
131blocking-http-transport-reqwest-rust-tls = ["blocking-http-transport-reqwest", "reqwest-for-configuration-only/rustls-tls" ]131blocking-http-transport-reqwest-rust-tls = ["blocking-http-transport-reqwest", "reqwest-for-configuration-only/rustls-tls" ]
@@ -139,7 +139,7 @@ blocking-http-transport-reqwest-native-tls = ["blocking-http-transport-reqwest", · 7 unmodified lines
139#! #### Performance139#! #### Performance
140#!140#!
141#! The reason these features exist is to allow optimization for compile time and optimize for compatibility by default. This means that some performance options around141#! The reason these features exist is to allow optimization for compile time and optimize for compatibility by default. This means that some performance options around
142#! SHA1 and ZIP might not compile on all platforms, so it depeneds on the end-user who compiles the application to chose these based on their needs.142#! SHA1 and ZIP might not compile on all platforms, so it depends on the end-user who compiles the application to chose these based on their needs.
143 143
144## Activate features that maximize performance, like usage of threads, `zlib-ng` and access to caching in object databases, skipping the ones known to cause compile failures144## Activate features that maximize performance, like usage of threads, `zlib-ng` and access to caching in object databases, skipping the ones known to cause compile failures
145## on some platforms.145## on some platforms.
gix/src/assets/init/info/exclude+1−1
@@ -1,4 +1,4 @@
1# Thise file contains repository-wide exclude patterns that git will ignore.1# This file contains repository-wide exclude patterns that git will ignore.
2# They are local and will not be shared when pushing or pulling.2# They are local and will not be shared when pushing or pulling.
3# When using Rust the following would be typical exclude patterns.3# When using Rust the following would be typical exclude patterns.
4# Remove the '# ' prefix to let them take effect.4# Remove the '# ' prefix to let them take effect.
gix/src/config/mod.rs+2−2
@@ -144,7 +144,7 @@ pub mod diff { · 143 unmodified lines
144 #[derive(Debug, thiserror::Error)]144 #[derive(Debug, thiserror::Error)]
145 #[error("Failed to parse value of 'diff.{name}.{attribute}'")]145 #[error("Failed to parse value of 'diff.{name}.{attribute}'")]
146 pub struct Error {146 pub struct Error {
147 /// The name fo the driver.147 /// The name of the driver.
148 pub name: BString,148 pub name: BString,
149 /// The name of the attribute we tried to parse.149 /// The name of the attribute we tried to parse.
150 pub attribute: &'static str,150 pub attribute: &'static str,
@@ -604,7 +604,7 @@ pub(crate) struct Cache { · 453 unmodified lines
604 // TODO: make core.precomposeUnicode available as well.604 // TODO: make core.precomposeUnicode available as well.
605}605}
606 606
607/// Utillities shared privately across the crate, for lack of a better place.607/// Utilities shared privately across the crate, for lack of a better place.
608pub(crate) mod shared {608pub(crate) mod shared {
609 use crate::{609 use crate::{
610 config,610 config,
gix/src/interrupt.rs+1−1
@@ -193,7 +193,7 @@ where · 192 unmodified lines
193 }193 }
194}194}
195 195
196/// A wrapper for implementors of [`std::io::Read`] or [`std::io::BufRead`] with interrupt support.196/// A wrapper for implementers of [`std::io::Read`] or [`std::io::BufRead`] with interrupt support.
197///197///
198/// It fails a [read][`std::io::Read::read`] while an interrupt was requested.198/// It fails a [read][`std::io::Read::read`] while an interrupt was requested.
199pub struct Read<R> {199pub struct Read<R> {
gix/src/object/tree/mod.rs+2−2
@@ -47,7 +47,7 @@ impl<'repo> Tree<'repo> { · 46 unmodified lines
47 /// # Performance Notes47 /// # Performance Notes
48 ///48 ///
49 /// Searching tree entries is currently done in sequence, which allows to the search to be allocation free. It would be possible49 /// Searching tree entries is currently done in sequence, which allows to the search to be allocation free. It would be possible
50 /// to re-use a vector and use a binary search instead, which might be able to improve performance over all.50 /// to reuse a vector and use a binary search instead, which might be able to improve performance over all.
51 /// However, a benchmark should be created first to have some data and see which trade-off to choose here.51 /// However, a benchmark should be created first to have some data and see which trade-off to choose here.
52 ///52 ///
53 pub fn lookup_entry<I, P>(&self, path: I, buf: &mut Vec<u8>) -> Result<Option<Entry<'repo>>, find::existing::Error>53 pub fn lookup_entry<I, P>(&self, path: I, buf: &mut Vec<u8>) -> Result<Option<Entry<'repo>>, find::existing::Error>
@@ -91,7 +91,7 @@ impl<'repo> Tree<'repo> { · 37 unmodified lines
91 /// # Performance Notes91 /// # Performance Notes
92 ///92 ///
93 /// Searching tree entries is currently done in sequence, which allows to the search to be allocation free. It would be possible93 /// Searching tree entries is currently done in sequence, which allows to the search to be allocation free. It would be possible
94 /// to re-use a vector and use a binary search instead, which might be able to improve performance over all.94 /// to reuse a vector and use a binary search instead, which might be able to improve performance over all.
95 /// However, a benchmark should be created first to have some data and see which trade-off to choose here.95 /// However, a benchmark should be created first to have some data and see which trade-off to choose here.
96 ///96 ///
97 pub fn peel_to_entry<I, P>(&mut self, path: I) -> Result<Option<Entry<'repo>>, find::existing::Error>97 pub fn peel_to_entry<I, P>(&mut self, path: I) -> Result<Option<Entry<'repo>>, find::existing::Error>
gix/src/repository/config/branch.rs+1−1
@@ -99,7 +99,7 @@ impl crate::Repository { · 98 unmodified lines
99 /// which would then lead to `refs/remotes/origin/other` to be returned instead.99 /// which would then lead to `refs/remotes/origin/other` to be returned instead.
100 ///100 ///
101 /// Note that if there is an ambiguity, that is if `name` maps to multiple tracking branches, the first matching mapping101 /// Note that if there is an ambiguity, that is if `name` maps to multiple tracking branches, the first matching mapping
102 /// is returned, according to the order in which the fetch or push refspecs occour in the configuration file.102 /// is returned, according to the order in which the fetch or push refspecs occur in the configuration file.
103 ///103 ///
104 /// See also [`Reference::remote_tracking_ref_name()`](crate::Reference::remote_tracking_ref_name()).104 /// See also [`Reference::remote_tracking_ref_name()`](crate::Reference::remote_tracking_ref_name()).
105 #[doc(alias = "branch_upstream_name", alias = "git2")]105 #[doc(alias = "branch_upstream_name", alias = "git2")]
gix/src/types.rs+1−1
@@ -150,7 +150,7 @@ pub struct Repository { · 149 unmodified lines
150 pub(crate) work_tree: Option<PathBuf>,150 pub(crate) work_tree: Option<PathBuf>,
151 /// The path to the resolved common directory if this is a linked worktree repository or it is otherwise set.151 /// The path to the resolved common directory if this is a linked worktree repository or it is otherwise set.
152 pub(crate) common_dir: Option<PathBuf>,152 pub(crate) common_dir: Option<PathBuf>,
153 /// A free-list of re-usable object backing buffers153 /// A free-list of reusable object backing buffers
154 pub(crate) bufs: RefCell<Vec<Vec<u8>>>,154 pub(crate) bufs: RefCell<Vec<Vec<u8>>>,
155 /// A pre-assembled selection of often-accessed configuration values for quick access.155 /// A pre-assembled selection of often-accessed configuration values for quick access.
156 pub(crate) config: crate::config::Cache,156 pub(crate) config: crate::config::Cache,
gix/tests/remote/fetch.rs+1−1
@@ -345,7 +345,7 @@ mod blocking_and_async_io { · 344 unmodified lines
345 for (shallow_args, expected) in [(None, [1, 7, 7]), (Some("--depth=2"), [1, 2, 2])] {345 for (shallow_args, expected) in [(None, [1, 7, 7]), (Some("--depth=2"), [1, 2, 2])] {
346 if version == gix::protocol::transport::Protocol::V1 && shallow_args.is_some() {346 if version == gix::protocol::transport::Protocol::V1 && shallow_args.is_some() {
347 // TODO: We cannot yet handle shallow mode for V1 as it will send shallow-info as part of the handshake :/.347 // TODO: We cannot yet handle shallow mode for V1 as it will send shallow-info as part of the handshake :/.
348 // It's probaby not the most important thing to be able to clone from a shallow remote anyway.348 // It's probably not the most important thing to be able to clone from a shallow remote anyway.
349 continue;349 continue;
350 }350 }
351 for (fetch_tags, expected_ref_count) in [fetch::Tags::None, fetch::Tags::Included, fetch::Tags::All]351 for (fetch_tags, expected_ref_count) in [fetch::Tags::None, fetch::Tags::Included, fetch::Tags::All]
gix/tests/repository/config/remote.rs+1−1
@@ -301,7 +301,7 @@ mod branch_remote { · 300 unmodified lines
301 .expect("exists")?301 .expect("exists")?
302 .shorten(),302 .shorten(),
303 "origin/other",303 "origin/other",
304 "as above, but we covert it to the tracking branch"304 "as above, but we convert it to the tracking branch"
305 );305 );
306 306
307 repo.config_snapshot_mut().set_value(&Push::DEFAULT, "simple")?;307 repo.config_snapshot_mut().set_value(&Push::DEFAULT, "simple")?;
src/lib.rs+1−1
@@ -24,5 +24,5 @@ · 23 unmodified lines
24#![allow(missing_docs)]24#![allow(missing_docs)]
25#![forbid(unsafe_code)]25#![forbid(unsafe_code)]
26 26
27/// everything in common beteween the `gix` and `ein` binaries.27/// everything in common between the `gix` and `ein` binaries.
28pub mod shared;28pub mod shared;
src/plumbing/options/mod.rs+1−1
@@ -78,7 +78,7 @@ pub struct Args { · 77 unmodified lines
78 78
79#[derive(Debug, clap::Subcommand)]79#[derive(Debug, clap::Subcommand)]
80pub enum Subcommands {80pub enum Subcommands {
81 /// Subcommands for creating worktree archivs81 /// Subcommands for creating worktree archives
82 #[cfg(feature = "gitoxide-core-tools-archive")]82 #[cfg(feature = "gitoxide-core-tools-archive")]
83 Archive(archive::Platform),83 Archive(archive::Platform),
84 /// Subcommands for interacting with commit-graphs84 /// Subcommands for interacting with commit-graphs