File tree Expand file tree Collapse file tree 9 files changed +9
-9
lines changed
gix-odb/src/store_impls/dynamic Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- //! The purpose of of this crate is to abstract the user interface of `gix` (the command-line interface) from the actual implementation.
1
+ //! The purpose of this crate is to abstract the user interface of `gix` (the command-line interface) from the actual implementation.
2
2
//! That way, one day it's possible to provide alternative frontends, including user interfaces.
3
3
//!
4
4
//! ### What is `gix`?
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ impl<'a> Path<'a> {
108
108
///
109
109
/// If this path starts with `~/` or `~user/` or `%(prefix)/`
110
110
/// - `~/` is expanded to the value of `home_dir`. The caller can use the [dirs](https://crates.io/crates/dirs) crate to obtain it.
111
- /// It it is required but not set, an error is produced.
111
+ /// If it is required but not set, an error is produced.
112
112
/// - `~user/` to the specified user’s home directory, e.g `~alice` might get expanded to `/home/alice` on linux, but requires
113
113
/// the `home_for_user` function to be provided.
114
114
/// The interpolation uses `getpwnam` sys call and is therefore not available on windows.
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ pub type FrontMatterEvents<'a> = SmallVec<[Event<'a>; 8]>;
51
51
/// - Only equal signs (optionally padded by spaces) are valid name/value
52
52
/// delimiters.
53
53
///
54
- /// Note that that things such as case-sensitivity or duplicate sections are
54
+ /// Note that things such as case-sensitivity or duplicate sections are
55
55
/// _not_ handled. This parser is a low level _syntactic_ interpreter
56
56
/// and higher level wrappers around this parser, which may
57
57
/// or may not be zero-copy, should handle _semantic_ values. This also means
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ fn sort_entries() {
35
35
assert_eq ! (
36
36
file. entry_by_path_and_stage( new_entry_path, 0 ) ,
37
37
None ,
38
- "new entry can't be found to to incorrect order"
38
+ "new entry can't be found due to incorrect order"
39
39
) ;
40
40
41
41
file. sort_entries ( ) ;
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ pub mod integrity {
109
109
impl super :: Store {
110
110
/// Check the integrity of all objects as per the given `options`.
111
111
///
112
- /// Note that this will not not force loading all indices or packs permanently, as we will only use the momentarily loaded disk state.
112
+ /// Note that this will not force loading all indices or packs permanently, as we will only use the momentarily loaded disk state.
113
113
/// This does, however, include all alternates.
114
114
pub fn verify_integrity < C , P , F > (
115
115
& self ,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub enum Stream<'a> {
43
43
/// The amount of bytes consumed from input
44
44
bytes_consumed : usize ,
45
45
} ,
46
- /// A packet line could not yet be parsed to to missing bytes
46
+ /// A packet line could not yet be parsed due to missing bytes
47
47
Incomplete {
48
48
/// The amount of additional bytes needed for the parsing to complete
49
49
bytes_needed : usize ,
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ impl<'repo> Object<'repo> {
157
157
} )
158
158
}
159
159
160
- /// Obtain a an iterator over commit tokens like in [`to_commit_iter()`][Object::try_to_commit_ref_iter()].
160
+ /// Obtain an iterator over commit tokens like in [`to_commit_iter()`][Object::try_to_commit_ref_iter()].
161
161
///
162
162
/// # Panic
163
163
///
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub struct Options {
16
16
/// Define what is allowed while opening a repository.
17
17
pub permissions : Permissions ,
18
18
pub ( crate ) git_dir_trust : Option < gix_sec:: Trust > ,
19
- /// Warning: this one is copied to to config::Cache - don't change it after repo open or keep in sync.
19
+ /// Warning: this one is copied to config::Cache - don't change it after repo open or keep in sync.
20
20
pub ( crate ) filter_config_section : Option < fn ( & gix_config:: file:: Metadata ) -> bool > ,
21
21
pub ( crate ) lossy_config : Option < bool > ,
22
22
pub ( crate ) lenient_config : bool ,
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl ThreadSafeRepository {
152
152
ref current_dir,
153
153
} = options;
154
154
let current_dir = current_dir. as_deref ( ) . expect ( "BUG: current_dir must be set by caller" ) ;
155
- let git_dir_trust = git_dir_trust. expect ( "trust must be been determined by now" ) ;
155
+ let git_dir_trust = git_dir_trust. expect ( "trust must be determined by now" ) ;
156
156
157
157
// TODO: assure we handle the worktree-dir properly as we can have config per worktree with an extension.
158
158
// This would be something read in later as have to first check for extensions. Also this means
You can’t perform that action at this time.
0 commit comments