+50
-50
lines changedFilter options
+50
-50
lines changed Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ pub struct Context<W> {
17
17
pub file_stats: bool,
18
18
/// Collect how many lines in files have been added, removed and modified (without rename tracking).
19
19
pub line_stats: bool,
20
-
/// The amount of threads to use. If unset, use all cores, if 0 use al physical cores.
20
+
/// The number of threads to use. If unset, use all cores, if 0 use all physical cores.
21
21
pub threads: Option<usize>,
22
22
/// Omit unifying identities by name and email which can lead to the same author appear multiple times
23
23
/// due to using different names or email addresses.
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ pub struct Options {
80
80
pub format: Format,
81
81
/// Given a `path`, originating in the git tree, to place into the archive, put `<prefix>/path` in front of it.
82
82
///
83
-
/// Note that that `/` should be used as separator, and that a prefix directory has to end with `/`.
83
+
/// Note that `/` should be used as separator, and that a prefix directory has to end with `/`.
84
84
pub tree_prefix: Option<BString>,
85
85
/// The modification time for all entries in the archive as seen since UNIX epoch.
86
86
///
Original file line number Diff line number Diff line change
@@ -159,7 +159,7 @@ mod prepare {
159
159
/// Set the name or path to the shell `program` to use if a shell is to be used, to avoid
160
160
/// using the default shell which is `sh`.
161
161
///
162
-
/// Note that that shells that are not Bourne-style cannot be expected to work correctly,
162
+
/// Note that shells that are not Bourne-style cannot be expected to work correctly,
163
163
/// because POSIX shell syntax is assumed when searching for and conditionally adding
164
164
/// `"$@"` to receive arguments, where applicable (and in the behaviour of
165
165
/// [`with_quoted_command()`](Self::with_quoted_command()), if called).
Original file line number Diff line number Diff line change
@@ -38,11 +38,11 @@ pub fn build_thread() -> std::thread::Builder {
38
38
}
39
39
40
40
/// Read items from `input` and `consume` them in multiple threads,
41
-
/// whose output output is collected by a `reducer`. Its task is to
42
-
/// aggregate these outputs into the final result returned by this function with the benefit of not having to be thread-safe.
41
+
/// whose output is collected by a `reducer`. Its task is to
42
+
/// aggregate these outputs into the final result returned by this function, with the benefit of not having to be thread-safe.
43
43
///
44
-
/// * if `thread_limit` is `Some`, the given amount of threads will be used. If `None`, all logical cores will be used.
45
-
/// * `new_thread_state(thread_number) -> State` produces thread-local state once per thread to be based to `consume`
44
+
/// * if `thread_limit` is `Some`, then the given number of threads will be used. If `None`, all logical cores will be used.
45
+
/// * `new_thread_state(thread_number) -> State` produces thread-local state once per thread to be passed to `consume`
46
46
/// * `consume(Item, &mut State) -> Output` produces an output given an input obtained by `input` along with mutable state initially
47
47
/// created by `new_thread_state(…)`.
48
48
/// * For `reducer`, see the [`Reduce`] trait
@@ -103,12 +103,12 @@ where
103
103
}
104
104
105
105
/// Read items from `input` and `consume` them in multiple threads,
106
-
/// whose output output is collected by a `reducer`. Its task is to
106
+
/// whose output is collected by a `reducer`. Its task is to
107
107
/// aggregate these outputs into the final result returned by this function with the benefit of not having to be thread-safe.
108
-
/// Caall `finalize` to finish the computation, once per thread, if there was no error sending results earlier.
108
+
/// Call `finalize` to finish the computation, once per thread, if there was no error sending results earlier.
109
109
///
110
-
/// * if `thread_limit` is `Some`, the given amount of threads will be used. If `None`, all logical cores will be used.
111
-
/// * `new_thread_state(thread_number) -> State` produces thread-local state once per thread to be based to `consume`
110
+
/// * if `thread_limit` is `Some`, then the given number of threads will be used. If `None`, all logical cores will be used.
111
+
/// * `new_thread_state(thread_number) -> State` produces thread-local state once per thread to be passed to `consume`
112
112
/// * `consume(Item, &mut State) -> Output` produces an output given an input obtained by `input` along with mutable state initially
113
113
/// created by `new_thread_state(…)`.
114
114
/// * `finalize(State) -> Output` is called to potentially process remaining work that was placed in `State`.
Original file line number Diff line number Diff line change
@@ -232,7 +232,7 @@ pub trait Reduce {
232
232
///
233
233
/// If an `Error` is returned, the entire operation will be stopped.
234
234
fn feed(&mut self, item: Self::Input) -> Result<Self::FeedProduce, Self::Error>;
235
-
/// Called once once all items where passed to `feed()`, producing the final `Output` of the operation or an `Error`.
235
+
/// Called once for all items that were passed to `feed()`, producing the final `Output` of the operation or an `Error`.
236
236
fn finalize(self) -> Result<Self::Output, Self::Error>;
237
237
}
238
238
Original file line number Diff line number Diff line change
@@ -116,12 +116,12 @@ mod not_parallel {
116
116
pub use not_parallel::{build_thread, in_parallel_with_slice, join, threads, Scope};
117
117
118
118
/// Read items from `input` and `consume` them in a single thread, producing an output to be collected by a `reducer`,
119
-
/// whose task is to aggregate these outputs into the final result returned by this function.
119
+
/// whose task it is to aggregate these outputs into the final result returned by this function.
120
120
///
121
-
/// * `new_thread_state(thread_number) -> State` produces thread-local state once per thread to be based to `consume`
121
+
/// * `new_thread_state(thread_number) -> State` produces thread-local state once per thread to be passed to `consume`
122
122
/// * `consume(Item, &mut State) -> Output` produces an output given an input along with mutable state.
123
123
/// * For `reducer`, see the [`Reduce`] trait
124
-
/// * if `thread_limit` has no effect as everything is run on the main thread, but is present to keep the signature
124
+
/// * `thread_limit` has no effect as everything is run on the main thread, but is present to keep the signature
125
125
/// similar to the parallel version.
126
126
///
127
127
/// **This serial version performing all calculations on the current thread.**
@@ -143,12 +143,12 @@ where
143
143
}
144
144
145
145
/// Read items from `input` and `consume` them in multiple threads,
146
-
/// whose output output is collected by a `reducer`. Its task is to
146
+
/// whose output is collected by a `reducer`. Its task is to
147
147
/// aggregate these outputs into the final result returned by this function with the benefit of not having to be thread-safe.
148
-
/// Caall `finalize` to finish the computation, once per thread, if there was no error sending results earlier.
148
+
/// Call `finalize` to finish the computation, once per thread, if there was no error sending results earlier.
149
149
///
150
-
/// * if `thread_limit` is `Some`, the given amount of threads will be used. If `None`, all logical cores will be used.
151
-
/// * `new_thread_state(thread_number) -> State` produces thread-local state once per thread to be based to `consume`
150
+
/// * if `thread_limit` is `Some`, the given number of threads will be used. If `None`, all logical cores will be used.
151
+
/// * `new_thread_state(thread_number) -> State` produces thread-local state once per thread to be passed to `consume`
152
152
/// * `consume(Item, &mut State) -> Output` produces an output given an input obtained by `input` along with mutable state initially
153
153
/// created by `new_thread_state(…)`.
154
154
/// * `finalize(State) -> Output` is called to potentially process remaining work that was placed in `State`.
Original file line number Diff line number Diff line change
@@ -72,14 +72,14 @@ impl State {
72
72
/// Each call to this method will cause the corresponding filter to be invoked unless `driver` indicates a `process` filter,
73
73
/// which is only launched once and maintained using this state.
74
74
///
75
-
/// Note that it's not an error if there is no filter process for `operation` or if a long-running process doesn't supported
75
+
/// Note that it's not an error if there is no filter process for `operation` or if a long-running process doesn't support
76
76
/// the desired capability.
77
77
///
78
78
/// ### Deviation
79
79
///
80
-
/// If a long running process returns the 'abort' status after receiving the data, it will be removed similar to how `git` does it.
81
-
/// However, it delivers an unsuccessful error status later, it will not be removed, but reports the error only.
82
-
/// If any other non-'error' status is received, the process will be stopped. But that doesn't happen if if such a status is received
80
+
/// If a long running process returns the 'abort' status after receiving the data, it will be removed similarly to how `git` does it.
81
+
/// However, if it returns an unsuccessful error status later, it will not be removed, but reports the error only.
82
+
/// If any other non-'error' status is received, the process will be stopped. But that doesn't happen if such a status is received
83
83
/// after reading the filtered result.
84
84
pub fn apply<'a>(
85
85
&'a mut self,
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ pub mod io_err {
96
96
}
97
97
98
98
#[cfg(not(unix))]
99
-
/// Returns whether a a file has the executable permission set.
99
+
/// Returns whether a file has the executable permission set.
100
100
pub fn is_executable(_metadata: &std::fs::Metadata) -> bool {
101
101
false
102
102
}
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ impl hash::Hash for oid {
34
34
}
35
35
}
36
36
37
-
/// A utility able to format itself with the given amount of characters in hex.
37
+
/// A utility able to format itself with the given number of characters in hex.
38
38
#[derive(PartialEq, Eq, Hash, Ord, PartialOrd)]
39
39
pub struct HexDisplay<'a> {
40
40
inner: &'a oid,
Original file line number Diff line number Diff line change
@@ -75,7 +75,7 @@ impl<'a> MessageRef<'a> {
75
75
summary(self.title)
76
76
}
77
77
78
-
/// Further parse the body into into non-trailer and trailers, which can be iterated from the returned [`BodyRef`].
78
+
/// Further parse the body into non-trailer and trailers, which can be iterated from the returned [`BodyRef`].
79
79
pub fn body(&self) -> Option<BodyRef<'a>> {
80
80
self.body.map(|b| BodyRef::from_bytes(b))
81
81
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4