@@ -166,23 +166,23 @@ pub mod fetch {
166
166
#[ derive( Debug , clap:: Parser ) ]
167
167
pub struct ShallowOptions {
168
168
/// Fetch with the history truncated to the given number of commits as seen from the remote.
169
- #[ clap( long, conflicts_with_all = [ "shallow_since" , "shallow_exclude" , "deepen" , "unshallow" ] ) ]
169
+ #[ clap( long, help_heading = Some ( "SHALLOW" ) , conflicts_with_all = [ "shallow_since" , "shallow_exclude" , "deepen" , "unshallow" ] ) ]
170
170
pub depth : Option < NonZeroU32 > ,
171
171
172
172
/// Extend the current shallow boundary by the given amount of commits, with 0 meaning no change.
173
- #[ clap( long, value_name = "DEPTH" , conflicts_with_all = [ "depth" , "shallow_since" , "shallow_exclude" , "unshallow" ] ) ]
173
+ #[ clap( long, help_heading = Some ( "SHALLOW" ) , value_name = "DEPTH" , conflicts_with_all = [ "depth" , "shallow_since" , "shallow_exclude" , "unshallow" ] ) ]
174
174
pub deepen : Option < u32 > ,
175
175
176
176
/// Cutoff all history past the given date. Can be combined with shallow-exclude.
177
- #[ clap( long, value_parser = crate :: shared:: AsTime , value_name = "DATE" , conflicts_with_all = [ "depth" , "deepen" , "unshallow" ] ) ]
177
+ #[ clap( long, help_heading = Some ( "SHALLOW" ) , value_parser = crate :: shared:: AsTime , value_name = "DATE" , conflicts_with_all = [ "depth" , "deepen" , "unshallow" ] ) ]
178
178
pub shallow_since : Option < gix:: date:: Time > ,
179
179
180
180
/// Cutoff all history past the tag-name or ref-name. Can be combined with shallow-since.
181
- #[ clap( long, value_parser = crate :: shared:: AsPartialRefName , value_name = "REF_NAME" , conflicts_with_all = [ "depth" , "deepen" , "unshallow" ] ) ]
181
+ #[ clap( long, help_heading = Some ( "SHALLOW" ) , value_parser = crate :: shared:: AsPartialRefName , value_name = "REF_NAME" , conflicts_with_all = [ "depth" , "deepen" , "unshallow" ] ) ]
182
182
pub shallow_exclude : Vec < gix:: refs:: PartialName > ,
183
183
184
184
/// Remove the shallow boundary and fetch the entire history available on the remote.
185
- #[ clap( long, conflicts_with_all = [ "shallow_since" , "shallow_exclude" , "depth" , "deepen" ] ) ]
185
+ #[ clap( long, help_heading = Some ( "SHALLOW" ) , conflicts_with_all = [ "shallow_since" , "shallow_exclude" , "depth" , "deepen" ] ) ]
186
186
pub unshallow : bool ,
187
187
}
188
188
@@ -241,15 +241,15 @@ pub mod clone {
241
241
#[ derive( Debug , clap:: Parser ) ]
242
242
pub struct ShallowOptions {
243
243
/// Create a shallow clone with the history truncated to the given number of commits.
244
- #[ clap( long, conflicts_with_all = [ "shallow_since" , "shallow_exclude" ] ) ]
244
+ #[ clap( long, help_heading = Some ( "SHALLOW" ) , conflicts_with_all = [ "shallow_since" , "shallow_exclude" ] ) ]
245
245
pub depth : Option < NonZeroU32 > ,
246
246
247
247
/// Cutoff all history past the given date. Can be combined with shallow-exclude.
248
- #[ clap( long, value_parser = crate :: shared:: AsTime , value_name = "DATE" ) ]
248
+ #[ clap( long, help_heading = Some ( "SHALLOW" ) , value_parser = crate :: shared:: AsTime , value_name = "DATE" ) ]
249
249
pub shallow_since : Option < gix:: date:: Time > ,
250
250
251
251
/// Cutoff all history past the tag-name or ref-name. Can be combined with shallow-since.
252
- #[ clap( long, value_parser = crate :: shared:: AsPartialRefName , value_name = "REF_NAME" ) ]
252
+ #[ clap( long, help_heading = Some ( "SHALLOW" ) , value_parser = crate :: shared:: AsPartialRefName , value_name = "REF_NAME" ) ]
253
253
pub shallow_exclude : Vec < gix:: refs:: PartialName > ,
254
254
}
255
255
0 commit comments