File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ pub struct Config<'a> {
19
19
pub rebase_options : & ' a Vec < & ' a str > ,
20
20
pub whole_file : bool ,
21
21
pub one_fixup_per_commit : bool ,
22
+ pub message : Option < & ' a str > ,
22
23
}
23
24
24
25
pub fn run ( logger : & slog:: Logger , config : & Config ) -> Result < ( ) > {
@@ -987,5 +988,6 @@ mod tests {
987
988
rebase_options : & Vec :: new ( ) ,
988
989
whole_file : false ,
989
990
one_fixup_per_commit : false ,
991
+ message : None ,
990
992
} ;
991
993
}
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ struct Cli {
44
44
/// Only generate one fixup per commit
45
45
#[ clap( long, short = 'F' ) ]
46
46
one_fixup_per_commit : bool ,
47
+ /// Commit message body that is given to all fixup commits
48
+ #[ clap( long, short) ]
49
+ message : Option < String > ,
47
50
}
48
51
49
52
fn main ( ) {
@@ -59,6 +62,7 @@ fn main() {
59
62
gen_completions,
60
63
whole_file,
61
64
one_fixup_per_commit,
65
+ message,
62
66
} = Cli :: parse ( ) ;
63
67
64
68
if let Some ( shell) = gen_completions {
@@ -109,6 +113,7 @@ fn main() {
109
113
rebase_options : & rebase_options,
110
114
whole_file,
111
115
one_fixup_per_commit,
116
+ message : message. as_deref ( ) ,
112
117
} ,
113
118
) {
114
119
crit ! ( logger, "absorb failed" ; "err" => e. to_string( ) ) ;
You can’t perform that action at this time.
0 commit comments