@@ -115,13 +115,13 @@ impl Options {
115
115
self
116
116
}
117
117
/// Controls the way untracked files are emitted. By default, this is happening immediately and without any simplification.
118
- pub fn emit_untracked ( mut self , toggle : EmissionMode ) -> Self {
119
- self . emit_untracked = toggle ;
118
+ pub fn emit_untracked ( mut self , mode : EmissionMode ) -> Self {
119
+ self . emit_untracked = mode ;
120
120
self
121
121
}
122
122
/// Like [`emit_untracked()`](Self::emit_untracked), but only requires a mutably borrowed instance.
123
- pub fn set_emit_untracked ( & mut self , toggle : EmissionMode ) -> & mut Self {
124
- self . emit_untracked = toggle ;
123
+ pub fn set_emit_untracked ( & mut self , mode : EmissionMode ) -> & mut Self {
124
+ self . emit_untracked = mode ;
125
125
self
126
126
}
127
127
/// If `toggle` is `true`, emit empty directories as well. Note that a directory also counts as empty if it has any
@@ -173,15 +173,15 @@ impl Options {
173
173
/// if `true` it will be excluded as the symlink is considered a directory.
174
174
///
175
175
/// In other words, for Git compatibility this flag should be `false`, the default, for `git2` compatibility it should be `true`.
176
- pub fn symlinks_to_directories_are_ignored_like_directories ( & mut self , toggle : bool ) -> & mut Self {
176
+ pub fn symlinks_to_directories_are_ignored_like_directories ( mut self , toggle : bool ) -> Self {
177
177
self . symlinks_to_directories_are_ignored_like_directories = toggle;
178
178
self
179
179
}
180
180
181
181
/// Like [`symlinks_to_directories_are_ignored_like_directories()`](Self::symlinks_to_directories_are_ignored_like_directories),
182
182
/// but only requires a mutably borrowed instance.
183
- pub fn set_symlinks_to_directories_are_ignored_like_directories ( & mut self , value : bool ) -> & mut Self {
184
- self . symlinks_to_directories_are_ignored_like_directories = value ;
183
+ pub fn set_symlinks_to_directories_are_ignored_like_directories ( & mut self , toggle : bool ) -> & mut Self {
184
+ self . symlinks_to_directories_are_ignored_like_directories = toggle ;
185
185
self
186
186
}
187
187
}
0 commit comments