Skip to content

Commit 55f379b

Browse files
authored
Merge pull request #1341 from szepeviktor/typos
Fix typos
2 parents b7ab287 + 9680e57 commit 55f379b

File tree

26 files changed

+60
-47
lines changed

26 files changed

+60
-47
lines changed

.gov/info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ maintainers:
88
- push directly to 'main' branch
99
- reviews or suggestions by other maintainers if PRs are used
1010
- co-ownership of contributed crates
11-
- reveive sponsorship via GitHub from project page
11+
- receive sponsorship via GitHub from project page
1212

1313

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ small = ["pretty-cli", "gix-features/rustsha1", "gix-features/zlib-rust-backend"
6464
## This build is more of a demonstration showing how async can work with `gitoxide`, which generally is blocking. This also means that the selection of async transports
6565
## is very limited to only HTTP (without typical `git` configuration) and git over TCP like provided by the `git daemon`.
6666
##
67-
## As fast as possible, progress line rendering, less feature-ful HTTP (pure Rust) and only `git-damon` support, all `ein` tools, CLI colors and local-time support, JSON output.
67+
## As fast as possible, progress line rendering, less featureful HTTP (pure Rust) and only `git-daemon` support, all `ein` tools, CLI colors and local-time support, JSON output.
6868
##
6969
## Due to async client-networking not being implemented for most transports, this one supports only the 'git+tcp' and HTTP transport.
7070
## It uses, however, a fully asynchronous networking implementation which can serve a real-world example on how to implement custom async transports.

_typos.toml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
1-
[default]
2-
extend-ignore-identifiers-re = [
3-
"[a-f0-9]{7,}",
4-
"[Ff][Oo][Oo]",
5-
"[a-zA-Z0-9]{20,}",
6-
]
7-
81
[files]
92
extend-exclude = [
103
"**/CHANGELOG.md",
11-
"**/tests/fixtures/**",
4+
"*.response",
5+
"etc/corpus/repo_metadata.sample.jsonl",
126
"gix-config/benches/large_config_file.rs",
13-
"gix-glob/tests/wildmatch/mod.rs"
7+
"gix-config/tests/fixtures/clusterfuzz-testcase-minimized-gix-config-parse-6431708583690240",
8+
"gix-glob/tests/wildmatch/mod.rs",
9+
"gix-path/tests/fixtures/fuzzed/54k-path-components.path",
1410
]
11+
ignore-hidden = false
1512

13+
[default]
14+
extend-ignore-re = [
15+
# PGP signature
16+
"[0-9A-Za-z+=]{44,}",
17+
'"egal"',
18+
'"bar", "bart", "ba"',
19+
'"foo/ba"',
20+
'"FO", "FO", &\[\], "FO"',
21+
'"(BarFoO|BarFoOo|FoO|FoOo)"',
22+
"\\|pn: &BStr\\| pn !=",
23+
]
24+
extend-ignore-identifiers-re = [
25+
# Git commit hash
26+
"[0-9a-f]{7,}",
27+
"rela_[a-z_]+",
28+
]
1629

17-
[default.extend-words]
18-
rela = "rela"
19-
unter = "unter"
30+
[default.extend-identifiers]
31+
_pn = "_pn"
32+
ein = "ein"

gitoxide-core/src/repository/clean.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub(crate) mod function {
6060
let index = repo.index_or_empty()?;
6161
let pathspec_for_dirwalk = !pathspec_matches_result;
6262
let has_patterns = !patterns.is_empty();
63-
let mut collect = InterruptableCollect::default();
63+
let mut collect = InterruptibleCollect::default();
6464
let collapse_directories = CollapseDirectory;
6565
let options = repo
6666
.dirwalk_options()?
@@ -365,11 +365,11 @@ pub(crate) mod function {
365365
}
366366

367367
#[derive(Default)]
368-
struct InterruptableCollect {
368+
struct InterruptibleCollect {
369369
inner: gix::dir::walk::delegate::Collect,
370370
}
371371

372-
impl gix::dir::walk::Delegate for InterruptableCollect {
372+
impl gix::dir::walk::Delegate for InterruptibleCollect {
373373
fn emit(&mut self, entry: EntryRef<'_>, collapsed_directory_status: Option<Status>) -> walk::Action {
374374
let res = self.inner.emit(entry, collapsed_directory_status);
375375
if gix::interrupt::is_triggered() {

gix-config/src/parse/nom/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ fn subsection_unescaped<'i>(i: &mut &'i [u8]) -> PResult<&'i [u8], NomError<&'i
190190
}
191191

192192
fn subsection_escaped_char<'i>(i: &mut &'i [u8]) -> PResult<&'i [u8], NomError<&'i [u8]>> {
193-
preceded('\\', one_of(is_subsection_escapeable_char).recognize()).parse_next(i)
193+
preceded('\\', one_of(is_subsection_escapable_char).recognize()).parse_next(i)
194194
}
195195

196-
fn is_subsection_escapeable_char(c: u8) -> bool {
196+
fn is_subsection_escapable_char(c: u8) -> bool {
197197
c != b'\n'
198198
}
199199

gix-dir/src/walk/classify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ pub fn path(
249249
return Ok(out.with_status(status).with_kind(kind, index_kind));
250250
}
251251

252-
debug_assert!(maybe_status.is_none(), "It only communicates a single stae right now");
252+
debug_assert!(maybe_status.is_none(), "It only communicates a single state right now");
253253
if let Some(excluded) = ctx
254254
.excludes
255255
.as_mut()

gix-dir/src/walk/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub trait Delegate {
9898
pub enum EmissionMode {
9999
/// Emit each entry as it matches exactly, without doing any kind of simplification.
100100
///
101-
/// Emissions in this mode are happening as they occour, without any buffering or ordering.
101+
/// Emissions in this mode are happening as they occur, without any buffering or ordering.
102102
#[default]
103103
Matching,
104104
/// Emit only a containing directory if all of its entries are of the same type.
@@ -215,7 +215,7 @@ pub struct Context<'a> {
215215
/// ### Important
216216
///
217217
/// The index must have been validated so that each entry that is considered up-to-date will have the [gix_index::entry::Flags::UPTODATE] flag
218-
/// set. Otherwise the index entry is not considered and a disk-access may occour which is costly.
218+
/// set. Otherwise the index entry is not considered and a disk-access may occur which is costly.
219219
pub index: &'a gix_index::State,
220220
/// A utility to lookup index entries faster, and deal with ignore-case handling.
221221
///

gix-dir/tests/walk/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ fn expendable_and_precious_in_ignored_dir_with_pathspec() -> crate::Result {
16051605
"with pathspec, we match what's inside and expect to have all the lowest-level paths that have 'ignored' in them.\
16061606
It seems strange that 'precious' isn't precious, while 'all-precious' is. However, the ignore-search is special
16071607
as it goes backward through directories (using directory-declarations), and aborts if it matched. Thus it finds
1608-
that '$/all-precious/' matched, but in the other cases it maches 'ignored/'.
1608+
that '$/all-precious/' matched, but in the other cases it matches 'ignored/'.
16091609
'other' gets folded and inherits, just like before.
16101610
Also, look how the ignore-state overrides the prune-default for DotGit kinds, to have more finegrained classification."
16111611
);

gix-filter/tests/eol/convert_to_worktree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn no_conversion_if_nothing_to_do() -> crate::Result {
5959
"mixed crlf and lf is avoided",
6060
),
6161
(
62-
&b"elligible-but-disabled\nhere"[..],
62+
&b"eligible-but-disabled\nhere"[..],
6363
AttributesDigest::Binary,
6464
"designated binary is never handled",
6565
),

gix-filter/tests/fixtures/baseline.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function repo_assertions() {
1717

1818
git config filter.arrow.clean "$driver clean %f"
1919
git config filter.arrow.smudge "$driver smudge %f"
20-
git config filter.arrow.requred true
20+
git config filter.arrow.required true
2121

2222
repo_assertions
2323
)
@@ -26,7 +26,7 @@ function repo_assertions() {
2626
git init process && cd process
2727

2828
git config filter.arrow.process "$driver process"
29-
git config filter.arrow.requred true
29+
git config filter.arrow.required true
3030

3131
repo_assertions
3232
)
@@ -35,7 +35,7 @@ function repo_assertions() {
3535
git init process-no-delay && cd process-no-delay
3636

3737
git config filter.arrow.process "$driver process disallow-delay"
38-
git config filter.arrow.requred true
38+
git config filter.arrow.required true
3939

4040
repo_assertions
4141
)

0 commit comments

Comments
 (0)