File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ impl<'repo> Id<'repo> {
49
49
50
50
fn calculate_auto_hex_len ( num_packed_objects : u64 ) -> usize {
51
51
let mut len = 64 - num_packed_objects. leading_zeros ( ) ;
52
- len = ( len + 2 - 1 ) / 2 ;
52
+ len = ( len + 1 ) / 2 ;
53
53
len. max ( 7 ) as usize
54
54
}
55
55
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ pub fn main() -> Result<()> {
159
159
Subcommands :: Repository ( repo:: Platform { repository, cmd } ) => match cmd {
160
160
repo:: Subcommands :: Commit { cmd } => match cmd {
161
161
repo:: commit:: Subcommands :: Describe {
162
- all_tags ,
162
+ annotated_tags ,
163
163
all_refs,
164
164
first_parent,
165
165
always,
@@ -180,7 +180,7 @@ pub fn main() -> Result<()> {
180
180
out,
181
181
err,
182
182
core:: repository:: commit:: describe:: Options {
183
- all_tags,
183
+ all_tags : !annotated_tags ,
184
184
all_refs,
185
185
long_format : long,
186
186
first_parent,
Original file line number Diff line number Diff line change @@ -395,12 +395,12 @@ pub mod repo {
395
395
pub enum Subcommands {
396
396
/// Describe the current commit or the given one using the name of the closest annotated tag in its ancestry.
397
397
Describe {
398
- /// Use all tag references for naming , not only annotated tags.
398
+ /// Use annotated tag references only , not all tags.
399
399
#[ clap( long, short = 't' , conflicts_with( "all-refs" ) ) ]
400
- all_tags : bool ,
400
+ annotated_tags : bool ,
401
401
402
402
/// Use all references under the `ref/` namespaces, which includes tag references, local and remote branches.
403
- #[ clap( long, short = 'a' , conflicts_with( "all -tags" ) ) ]
403
+ #[ clap( long, short = 'a' , conflicts_with( "annotated -tags" ) ) ]
404
404
all_refs : bool ,
405
405
406
406
/// Only follow the first parent when traversing the commit graph.
You can’t perform that action at this time.
0 commit comments