@@ -98,12 +98,7 @@ pub mod interrupt;
98
98
99
99
mod ext;
100
100
///
101
- pub mod prelude {
102
- pub use gix_features:: parallel:: reduce:: Finalize ;
103
- pub use gix_odb:: { Find , FindExt , Header , HeaderExt , Write } ;
104
-
105
- pub use crate :: ext:: * ;
106
- }
101
+ pub mod prelude;
107
102
108
103
///
109
104
pub mod path;
@@ -133,31 +128,10 @@ mod repository;
133
128
pub mod tag;
134
129
135
130
///
136
- pub mod progress {
137
- #[ cfg( feature = "progress-tree" ) ]
138
- pub use gix_features:: progress:: prodash:: tree;
139
- pub use gix_features:: progress:: * ;
140
- }
131
+ pub mod progress;
141
132
142
133
///
143
- pub mod diff {
144
- pub use gix_diff:: * ;
145
- ///
146
- pub mod rename {
147
- /// Determine how to do rename tracking.
148
- #[ derive( Debug , Copy , Clone , Eq , PartialEq ) ]
149
- pub enum Tracking {
150
- /// Do not track renames at all, the fastest option.
151
- Disabled ,
152
- /// Track renames.
153
- Renames ,
154
- /// Track renames and copies.
155
- ///
156
- /// This is the most expensive option.
157
- RenamesAndCopies ,
158
- }
159
- }
160
- }
134
+ pub mod diff;
161
135
162
136
/// See [ThreadSafeRepository::discover()], but returns a [`Repository`] instead.
163
137
#[ allow( clippy:: result_large_err) ]
@@ -238,20 +212,10 @@ pub fn open_opts(directory: impl Into<std::path::PathBuf>, options: open::Option
238
212
}
239
213
240
214
///
241
- pub mod permission {
242
- ///
243
- pub mod env_var {
244
- ///
245
- pub mod resource {
246
- ///
247
- pub type Error = gix_sec:: permission:: Error < std:: path:: PathBuf > ;
248
- }
249
- }
250
- }
215
+ pub mod permission;
216
+
251
217
///
252
- pub mod permissions {
253
- pub use crate :: repository:: permissions:: { Config , Environment } ;
254
- }
218
+ pub mod permissions;
255
219
pub use repository:: permissions:: Permissions ;
256
220
257
221
///
@@ -278,33 +242,10 @@ pub mod remote;
278
242
pub mod init;
279
243
280
244
/// Not to be confused with 'status'.
281
- pub mod state {
282
- /// Tell what operation is currently in progress.
283
- #[ derive( Debug , PartialEq , Eq ) ]
284
- pub enum InProgress {
285
- /// A mailbox is being applied.
286
- ApplyMailbox ,
287
- /// A rebase is happening while a mailbox is being applied.
288
- // TODO: test
289
- ApplyMailboxRebase ,
290
- /// A git bisect operation has not yet been concluded.
291
- Bisect ,
292
- /// A cherry pick operation.
293
- CherryPick ,
294
- /// A cherry pick with multiple commits pending.
295
- CherryPickSequence ,
296
- /// A merge operation.
297
- Merge ,
298
- /// A rebase operation.
299
- Rebase ,
300
- /// An interactive rebase operation.
301
- RebaseInteractive ,
302
- /// A revert operation.
303
- Revert ,
304
- /// A revert operation with multiple commits pending.
305
- RevertSequence ,
306
- }
307
- }
245
+ pub mod state;
246
+
247
+ ///
248
+ pub mod shallow;
308
249
309
250
///
310
251
pub mod discover;
0 commit comments