File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,6 @@ pub use gix_ref as refs;
129
129
pub use gix_refspec as refspec;
130
130
pub use gix_revwalk as revwalk;
131
131
pub use gix_sec as sec;
132
- #[ cfg( feature = "status" ) ]
133
- pub use gix_status as status;
134
132
pub use gix_tempfile as tempfile;
135
133
pub use gix_trace as trace;
136
134
pub use gix_traverse as traverse;
@@ -308,6 +306,10 @@ pub mod init;
308
306
/// Not to be confused with 'status'.
309
307
pub mod state;
310
308
309
+ ///
310
+ #[ cfg( feature = "status" ) ]
311
+ pub mod status;
312
+
311
313
///
312
314
pub mod shallow;
313
315
Original file line number Diff line number Diff line change
1
+ use crate :: Repository ;
2
+ pub use gix_status as plumbing;
3
+
4
+ /// A structure to hold options configuring the status request, which can then be turned into an iterator.
5
+ #[ derive( Clone ) ]
6
+ pub struct Platform < ' repo > {
7
+ repo : & ' repo Repository ,
8
+ }
9
+
10
+ /// Status
11
+ impl Repository {
12
+ /// Obtain a platform for configuring and traversing the git repository status.
13
+ pub fn status ( & self ) -> Platform < ' _ > {
14
+ Platform { repo : self }
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments