@@ -183,6 +183,7 @@ fn test_merge_commit_reverse_order() -> eyre::Result<()> {
183183 let git = make_git ( ) ?;
184184
185185 git. init_repo ( ) ?;
186+ git. run ( & [ "config" , "branchless.smartlog.reverse" , "true" ] ) ?;
186187 git. run ( & [ "checkout" , "-b" , "test1" , "master" ] ) ?;
187188 git. commit_file ( "test1" , 1 ) ?;
188189 git. run ( & [ "checkout" , "-b" , "test2and3" , "master" ] ) ?;
@@ -196,7 +197,7 @@ fn test_merge_commit_reverse_order() -> eyre::Result<()> {
196197 } ,
197198 ) ?;
198199
199- let ( stdout, _) = git. branchless ( "smartlog" , & [ "--reverse" ] ) ?;
200+ let ( stdout, _) = git. branchless ( "smartlog" , & [ ] ) ?;
200201 insta:: assert_snapshot!( stdout, @r###"
201202 @ fa4e4e1 (> test2and3) Merge branch 'test1' into test2and3
202203 |\
@@ -499,7 +500,7 @@ fn test_smartlog_hint_abandoned_except_current_commit() -> eyre::Result<()> {
499500 Ok ( ( ) )
500501}
501502
502- /// When -- reverse is specified hints still appear at the end of output
503+ /// When branchless.smartlog. reverse is `true`, hints still appear at the end of output
503504#[ test]
504505fn test_smartlog_hint_abandoned_reverse_order ( ) -> eyre:: Result < ( ) > {
505506 let git = make_git ( ) ?;
@@ -508,14 +509,15 @@ fn test_smartlog_hint_abandoned_reverse_order() -> eyre::Result<()> {
508509 return Ok ( ( ) ) ;
509510 }
510511 git. init_repo ( ) ?;
512+ git. run ( & [ "config" , "branchless.smartlog.reverse" , "true" ] ) ?;
511513
512514 git. detach_head ( ) ?;
513515 git. commit_file ( "test1" , 1 ) ?;
514516 git. commit_file ( "test2" , 2 ) ?;
515517 git. run ( & [ "checkout" , "HEAD^" ] ) ?;
516518 git. run ( & [ "commit" , "--amend" , "-m" , "amended test1" ] ) ?;
517519
518- let ( stdout, _) = git. branchless ( "smartlog" , & [ "--reverse" ] ) ?;
520+ let ( stdout, _) = git. branchless ( "smartlog" , & [ ] ) ?;
519521 insta:: assert_snapshot!( stdout, @r###"
520522 o 96d1c37 create test2.txt
521523 |
0 commit comments