File tree Expand file tree Collapse file tree
gix-odb/src/store_impls/dynamic Expand file tree Collapse file tree 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.
22//! That way, one day it's possible to provide alternative frontends, including user interfaces.
33//!
44//! ### What is `gix`?
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ impl<'a> Path<'a> {
108108 ///
109109 /// If this path starts with `~/` or `~user/` or `%(prefix)/`
110110 /// - `~/` 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.
112112 /// - `~user/` to the specified user’s home directory, e.g `~alice` might get expanded to `/home/alice` on linux, but requires
113113 /// the `home_for_user` function to be provided.
114114 /// 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]>;
5151/// - Only equal signs (optionally padded by spaces) are valid name/value
5252/// delimiters.
5353///
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
5555/// _not_ handled. This parser is a low level _syntactic_ interpreter
5656/// and higher level wrappers around this parser, which may
5757/// 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() {
3535 assert_eq ! (
3636 file. entry_by_path_and_stage( new_entry_path, 0 ) ,
3737 None ,
38- "new entry can't be found to to incorrect order"
38+ "new entry can't be found due to incorrect order"
3939 ) ;
4040
4141 file. sort_entries ( ) ;
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ pub mod integrity {
109109impl super :: Store {
110110 /// Check the integrity of all objects as per the given `options`.
111111 ///
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.
113113 /// This does, however, include all alternates.
114114 pub fn verify_integrity < C , P , F > (
115115 & self ,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub enum Stream<'a> {
4343 /// The amount of bytes consumed from input
4444 bytes_consumed : usize ,
4545 } ,
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
4747 Incomplete {
4848 /// The amount of additional bytes needed for the parsing to complete
4949 bytes_needed : usize ,
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ impl<'repo> Object<'repo> {
157157 } )
158158 }
159159
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()].
161161 ///
162162 /// # Panic
163163 ///
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub struct Options {
1616 /// Define what is allowed while opening a repository.
1717 pub permissions : Permissions ,
1818 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.
2020 pub ( crate ) filter_config_section : Option < fn ( & gix_config:: file:: Metadata ) -> bool > ,
2121 pub ( crate ) lossy_config : Option < bool > ,
2222 pub ( crate ) lenient_config : bool ,
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl ThreadSafeRepository {
152152 ref current_dir,
153153 } = options;
154154 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" ) ;
156156
157157 // TODO: assure we handle the worktree-dir properly as we can have config per worktree with an extension.
158158 // 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