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 @@ -131,8 +131,6 @@ pub use gix_ref as refs;
131
131
pub use gix_refspec as refspec;
132
132
pub use gix_revwalk as revwalk;
133
133
pub use gix_sec as sec;
134
- #[ cfg( feature = "status" ) ]
135
- pub use gix_status as status;
136
134
pub use gix_tempfile as tempfile;
137
135
pub use gix_trace as trace;
138
136
pub use gix_traverse as traverse;
@@ -312,6 +310,10 @@ pub mod init;
312
310
/// Not to be confused with 'status'.
313
311
pub mod state;
314
312
313
+ ///
314
+ #[ cfg( feature = "status" ) ]
315
+ pub mod status;
316
+
315
317
///
316
318
pub mod shallow;
317
319
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