@@ -55,9 +55,6 @@ pub enum Subcommands {
55
55
#[ clap( subcommand) ]
56
56
#[ cfg( any( feature = "gitoxide-core-async-client" , feature = "gitoxide-core-blocking-client" ) ) ]
57
57
Remote ( remote:: Subcommands ) ,
58
- /// Subcommands for interacting with commit-graphs
59
- #[ clap( subcommand) ]
60
- CommitGraph ( commitgraph:: Subcommands ) ,
61
58
/// Subcommands for interacting with entire git repositories
62
59
Repository ( repo:: Platform ) ,
63
60
/// Subcommands that need no git repository to run.
@@ -69,6 +66,9 @@ pub enum Subcommands {
69
66
pub mod free {
70
67
#[ derive( Debug , clap:: Subcommand ) ]
71
68
pub enum Subcommands {
69
+ /// Subcommands for interacting with commit-graphs
70
+ #[ clap( subcommand) ]
71
+ CommitGraph ( commitgraph:: Subcommands ) ,
72
72
/// Subcommands for interacting with mailmaps
73
73
Mailmap {
74
74
#[ clap( flatten) ]
@@ -81,6 +81,23 @@ pub mod free {
81
81
Index ( index:: Platform ) ,
82
82
}
83
83
84
+ ///
85
+ pub mod commitgraph {
86
+ use std:: path:: PathBuf ;
87
+
88
+ #[ derive( Debug , clap:: Subcommand ) ]
89
+ pub enum Subcommands {
90
+ /// Verify the integrity of a commit graph
91
+ Verify {
92
+ /// The path to '.git/objects/info/', '.git/objects/info/commit-graphs/', or '.git/objects/info/commit-graph' to validate.
93
+ path : PathBuf ,
94
+ /// output statistical information about the pack
95
+ #[ clap( long, short = 's' ) ]
96
+ statistics : bool ,
97
+ } ,
98
+ }
99
+ }
100
+
84
101
pub mod index {
85
102
use std:: path:: PathBuf ;
86
103
@@ -585,24 +602,6 @@ pub mod repo {
585
602
}
586
603
}
587
604
588
- ///
589
- ///
590
- pub mod commitgraph {
591
- use std:: path:: PathBuf ;
592
-
593
- #[ derive( Debug , clap:: Subcommand ) ]
594
- pub enum Subcommands {
595
- /// Verify the integrity of a commit graph
596
- Verify {
597
- /// The path to '.git/objects/info/', '.git/objects/info/commit-graphs/', or '.git/objects/info/commit-graph' to validate.
598
- path : PathBuf ,
599
- /// output statistical information about the pack
600
- #[ clap( long, short = 's' ) ]
601
- statistics : bool ,
602
- } ,
603
- }
604
- }
605
-
606
605
///
607
606
#[ cfg( any( feature = "gitoxide-core-async-client" , feature = "gitoxide-core-blocking-client" ) ) ]
608
607
pub mod remote {
0 commit comments