@@ -53,7 +53,7 @@ fn make() -> clap::Command<'static> {
53
53
. override_usage (
54
54
"stg uncommit <patchname-1> [<patchname-2> ...]\n \
55
55
stg uncommit -n number [<patchname-prefix>]\n \
56
- stg uncommit -t <commitish > [-x]",
56
+ stg uncommit -t <committish > [-x]",
57
57
)
58
58
. arg (
59
59
Arg :: new ( "patchname" )
@@ -76,7 +76,7 @@ fn make() -> clap::Command<'static> {
76
76
. long ( "to" )
77
77
. short ( 't' )
78
78
. help ( "Uncommit to the specified committish" )
79
- . value_name ( "commitish " )
79
+ . value_name ( "committish " )
80
80
. conflicts_with ( "patchname" ) ,
81
81
)
82
82
. arg (
@@ -96,15 +96,15 @@ fn run(matches: &ArgMatches) -> Result<()> {
96
96
97
97
let patchname_len_limit = PatchName :: get_length_limit ( & config) ;
98
98
99
- let ( commits, patchnames) = if let Some ( commitish ) = matches. get_one :: < String > ( "to" ) {
99
+ let ( commits, patchnames) = if let Some ( committish ) = matches. get_one :: < String > ( "to" ) {
100
100
let target_object = repo
101
- . revparse_single ( commitish )
102
- . map_err ( |_| anyhow ! ( "Invalid commitish `{commitish }`" ) ) ?;
101
+ . revparse_single ( committish )
102
+ . map_err ( |_| anyhow ! ( "Invalid committish `{committish }`" ) ) ?;
103
103
104
104
let mut target_commit = target_object
105
105
. peel ( git2:: ObjectType :: Commit ) . ok ( )
106
106
. and_then ( |c| c. into_commit ( ) . ok ( ) )
107
- . ok_or_else ( || anyhow ! ( "Target `{commitish }` cannot be evaluated as a commit" ) ) ?;
107
+ . ok_or_else ( || anyhow ! ( "Target `{committish }` cannot be evaluated as a commit" ) ) ?;
108
108
109
109
let bases = repo. merge_bases ( target_commit. id ( ) , stack. base ( ) . id ( ) ) ?;
110
110
0 commit comments