Fossil SCM

Add/use the --quiet option on 'timeline' to suppress printing end-of-timeline notifications.

danield 2026-02-10 10:01 trunk
Commit 3e3d5ed011dd6278f664c6869a66e1a98027b93a0bcaf1ea3a69a25dac4009cb
1 file changed +13 -4
+13 -4
--- src/timeline.c
+++ src/timeline.c
@@ -3452,14 +3452,18 @@
34523452
int n = 0;
34533453
char zPrefix[80];
34543454
34553455
if( nAbsLimit!=0 ){
34563456
if( nLimit<0 && nLine>=nAbsLimit ){
3457
- fossil_print("--- line limit (%d) reached ---\n", nAbsLimit);
3457
+ if( !g.fQuiet ){
3458
+ fossil_print("--- line limit (%d) reached ---\n", nAbsLimit);
3459
+ }
34583460
break; /* line count limit hit, stop. */
34593461
}else if( nEntry>=nAbsLimit ){
3460
- fossil_print("--- entry limit (%d) reached ---\n", nAbsLimit);
3462
+ if( !g.fQuiet ){
3463
+ fossil_print("--- entry limit (%d) reached ---\n", nAbsLimit);
3464
+ }
34613465
break; /* entry count limit hit, stop. */
34623466
}
34633467
}
34643468
if( zFormat == 0 && fossil_strnicmp(zDate, zPrevDate, 10) ){
34653469
fossil_print("=== %.10s ===\n", zDate);
@@ -3570,13 +3574,17 @@
35703574
nEntry++; /* record another complete entry */
35713575
}
35723576
if( rc==SQLITE_DONE ){
35733577
/* Did the underlying query actually have all entries? */
35743578
if( nAbsLimit==0 ){
3575
- fossil_print("+++ end of timeline (%d) +++\n", nEntry);
3579
+ if( !g.fQuiet ){
3580
+ fossil_print("+++ end of timeline (%d) +++\n", nEntry);
3581
+ }
35763582
}else{
3577
- fossil_print("+++ no more data (%d) +++\n", nEntry);
3583
+ if( !g.fQuiet ){
3584
+ fossil_print("+++ no more data (%d) +++\n", nEntry);
3585
+ }
35783586
}
35793587
}
35803588
if( fchngQueryInit ) db_finalize(&fchngQuery);
35813589
}
35823590
@@ -3730,10 +3738,11 @@
37303738
** N is negative, output the first -N lines. If N is
37313739
** zero, no limit. Default is -20 meaning 20 lines.
37323740
** --offset P Skip P changes
37333741
** -p|--path PATH Output items affecting PATH only.
37343742
** PATH can be a file or a subdirectory.
3743
+** -q|--quiet Do not print notifications at the end of the timeline.
37353744
** -r|--reverse Show items in chronological order.
37363745
** -R REPO_FILE Specifies the repository db to use. Default is
37373746
** the current check-out's repository.
37383747
** --sql Show the SQL used to generate the timeline
37393748
** -t|--type TYPE Output items from the given types only, such as:
37403749
--- src/timeline.c
+++ src/timeline.c
@@ -3452,14 +3452,18 @@
3452 int n = 0;
3453 char zPrefix[80];
3454
3455 if( nAbsLimit!=0 ){
3456 if( nLimit<0 && nLine>=nAbsLimit ){
3457 fossil_print("--- line limit (%d) reached ---\n", nAbsLimit);
 
 
3458 break; /* line count limit hit, stop. */
3459 }else if( nEntry>=nAbsLimit ){
3460 fossil_print("--- entry limit (%d) reached ---\n", nAbsLimit);
 
 
3461 break; /* entry count limit hit, stop. */
3462 }
3463 }
3464 if( zFormat == 0 && fossil_strnicmp(zDate, zPrevDate, 10) ){
3465 fossil_print("=== %.10s ===\n", zDate);
@@ -3570,13 +3574,17 @@
3570 nEntry++; /* record another complete entry */
3571 }
3572 if( rc==SQLITE_DONE ){
3573 /* Did the underlying query actually have all entries? */
3574 if( nAbsLimit==0 ){
3575 fossil_print("+++ end of timeline (%d) +++\n", nEntry);
 
 
3576 }else{
3577 fossil_print("+++ no more data (%d) +++\n", nEntry);
 
 
3578 }
3579 }
3580 if( fchngQueryInit ) db_finalize(&fchngQuery);
3581 }
3582
@@ -3730,10 +3738,11 @@
3730 ** N is negative, output the first -N lines. If N is
3731 ** zero, no limit. Default is -20 meaning 20 lines.
3732 ** --offset P Skip P changes
3733 ** -p|--path PATH Output items affecting PATH only.
3734 ** PATH can be a file or a subdirectory.
 
3735 ** -r|--reverse Show items in chronological order.
3736 ** -R REPO_FILE Specifies the repository db to use. Default is
3737 ** the current check-out's repository.
3738 ** --sql Show the SQL used to generate the timeline
3739 ** -t|--type TYPE Output items from the given types only, such as:
3740
--- src/timeline.c
+++ src/timeline.c
@@ -3452,14 +3452,18 @@
3452 int n = 0;
3453 char zPrefix[80];
3454
3455 if( nAbsLimit!=0 ){
3456 if( nLimit<0 && nLine>=nAbsLimit ){
3457 if( !g.fQuiet ){
3458 fossil_print("--- line limit (%d) reached ---\n", nAbsLimit);
3459 }
3460 break; /* line count limit hit, stop. */
3461 }else if( nEntry>=nAbsLimit ){
3462 if( !g.fQuiet ){
3463 fossil_print("--- entry limit (%d) reached ---\n", nAbsLimit);
3464 }
3465 break; /* entry count limit hit, stop. */
3466 }
3467 }
3468 if( zFormat == 0 && fossil_strnicmp(zDate, zPrevDate, 10) ){
3469 fossil_print("=== %.10s ===\n", zDate);
@@ -3570,13 +3574,17 @@
3574 nEntry++; /* record another complete entry */
3575 }
3576 if( rc==SQLITE_DONE ){
3577 /* Did the underlying query actually have all entries? */
3578 if( nAbsLimit==0 ){
3579 if( !g.fQuiet ){
3580 fossil_print("+++ end of timeline (%d) +++\n", nEntry);
3581 }
3582 }else{
3583 if( !g.fQuiet ){
3584 fossil_print("+++ no more data (%d) +++\n", nEntry);
3585 }
3586 }
3587 }
3588 if( fchngQueryInit ) db_finalize(&fchngQuery);
3589 }
3590
@@ -3730,10 +3738,11 @@
3738 ** N is negative, output the first -N lines. If N is
3739 ** zero, no limit. Default is -20 meaning 20 lines.
3740 ** --offset P Skip P changes
3741 ** -p|--path PATH Output items affecting PATH only.
3742 ** PATH can be a file or a subdirectory.
3743 ** -q|--quiet Do not print notifications at the end of the timeline.
3744 ** -r|--reverse Show items in chronological order.
3745 ** -R REPO_FILE Specifies the repository db to use. Default is
3746 ** the current check-out's repository.
3747 ** --sql Show the SQL used to generate the timeline
3748 ** -t|--type TYPE Output items from the given types only, such as:
3749

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button