@@ -183,6 +183,7 @@ fn test_merge_commit_reverse_order() -> eyre::Result<()> {
183
183
let git = make_git ( ) ?;
184
184
185
185
git. init_repo ( ) ?;
186
+ git. run ( & [ "config" , "branchless.smartlog.reverse" , "true" ] ) ?;
186
187
git. run ( & [ "checkout" , "-b" , "test1" , "master" ] ) ?;
187
188
git. commit_file ( "test1" , 1 ) ?;
188
189
git. run ( & [ "checkout" , "-b" , "test2and3" , "master" ] ) ?;
@@ -196,7 +197,7 @@ fn test_merge_commit_reverse_order() -> eyre::Result<()> {
196
197
} ,
197
198
) ?;
198
199
199
- let ( stdout, _) = git. branchless ( "smartlog" , & [ "--reverse" ] ) ?;
200
+ let ( stdout, _) = git. branchless ( "smartlog" , & [ ] ) ?;
200
201
insta:: assert_snapshot!( stdout, @r###"
201
202
@ fa4e4e1 (> test2and3) Merge branch 'test1' into test2and3
202
203
|\
@@ -499,7 +500,7 @@ fn test_smartlog_hint_abandoned_except_current_commit() -> eyre::Result<()> {
499
500
Ok ( ( ) )
500
501
}
501
502
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
503
504
#[ test]
504
505
fn test_smartlog_hint_abandoned_reverse_order ( ) -> eyre:: Result < ( ) > {
505
506
let git = make_git ( ) ?;
@@ -508,14 +509,15 @@ fn test_smartlog_hint_abandoned_reverse_order() -> eyre::Result<()> {
508
509
return Ok ( ( ) ) ;
509
510
}
510
511
git. init_repo ( ) ?;
512
+ git. run ( & [ "config" , "branchless.smartlog.reverse" , "true" ] ) ?;
511
513
512
514
git. detach_head ( ) ?;
513
515
git. commit_file ( "test1" , 1 ) ?;
514
516
git. commit_file ( "test2" , 2 ) ?;
515
517
git. run ( & [ "checkout" , "HEAD^" ] ) ?;
516
518
git. run ( & [ "commit" , "--amend" , "-m" , "amended test1" ] ) ?;
517
519
518
- let ( stdout, _) = git. branchless ( "smartlog" , & [ "--reverse" ] ) ?;
520
+ let ( stdout, _) = git. branchless ( "smartlog" , & [ ] ) ?;
519
521
insta:: assert_snapshot!( stdout, @r###"
520
522
o 96d1c37 create test2.txt
521
523
|
0 commit comments