@@ -13,7 +13,7 @@ pub(crate) fn command_commit(
1313 if let Some ( pre_commit) = & config. hooks . pre_commit
1414 && !no_pre_hook
1515 {
16- run_hook ( config, pre_commit. clone ( ) , "pre-commit" ) ?;
16+ run_hook ( config, pre_commit. clone ( ) , "pre-commit" , None ) ?;
1717 }
1818 if let Some ( msg) = message {
1919 cmd ! ( "jj" , "commit" , "--interactive" , "--message" , msg) . run ( ) ?;
@@ -23,7 +23,7 @@ pub(crate) fn command_commit(
2323 if let Some ( post_commit) = & config. hooks . post_commit
2424 && !no_post_hook
2525 {
26- run_hook ( config, post_commit. clone ( ) , "post-commit" ) ?;
26+ run_hook ( config, post_commit. clone ( ) , "post-commit" , None ) ?;
2727 }
2828 // TODO: should we give more options here?
2929 if push {
@@ -57,7 +57,7 @@ pub(crate) fn command_amend(
5757 if let Some ( pre_commit) = & config. hooks . pre_commit
5858 && !no_pre_hook
5959 {
60- run_hook ( config, pre_commit. clone ( ) , "pre-commit" ) ?;
60+ run_hook ( config, pre_commit. clone ( ) , "pre-commit" , None ) ?;
6161 }
6262 let args: Vec < & str > = vec ! [
6363 "squash" ,
@@ -76,7 +76,7 @@ pub(crate) fn command_amend(
7676 if let Some ( post_commit) = & config. hooks . post_commit
7777 && !no_post_hook
7878 {
79- run_hook ( config, post_commit. clone ( ) , "post-commit" ) ?;
79+ run_hook ( config, post_commit. clone ( ) , "post-commit" , None ) ?;
8080 }
8181 // TODO: should we give more options here?
8282 if push {
0 commit comments