Fossil SCM
Enhance the title for the /finfo page when the ubg query parameter is present. Use the ubg query parameter for the document history link on the rebaseharm.md page.
Commit
80f982518b4e33e074693e7f55ec58a0f9ce19ddb816fd724041e9cf628733fe
Parent
b0f2a48f98e0bf0…
2 files changed
+3
+1
-1
+3
| --- src/finfo.c | ||
| +++ src/finfo.c | ||
| @@ -453,10 +453,13 @@ | ||
| 453 | 453 | }else{ |
| 454 | 454 | blob_appendf(&title, "History of "); |
| 455 | 455 | hyperlinked_path(zFilename, &title, 0, "tree", ""); |
| 456 | 456 | if( fShowId ) blob_appendf(&title, " (%d)", fnid); |
| 457 | 457 | } |
| 458 | + if( uBg ){ | |
| 459 | + blob_append(&title, " (color-coded by user)", -1); | |
| 460 | + } | |
| 458 | 461 | @ <h2>%b(&title)</h2> |
| 459 | 462 | blob_reset(&title); |
| 460 | 463 | pGraph = graph_init(); |
| 461 | 464 | @ <table id="timelineTable%d(iTableId)" class="timelineTable"> |
| 462 | 465 | if( baseCheckin ){ |
| 463 | 466 |
| --- src/finfo.c | |
| +++ src/finfo.c | |
| @@ -453,10 +453,13 @@ | |
| 453 | }else{ |
| 454 | blob_appendf(&title, "History of "); |
| 455 | hyperlinked_path(zFilename, &title, 0, "tree", ""); |
| 456 | if( fShowId ) blob_appendf(&title, " (%d)", fnid); |
| 457 | } |
| 458 | @ <h2>%b(&title)</h2> |
| 459 | blob_reset(&title); |
| 460 | pGraph = graph_init(); |
| 461 | @ <table id="timelineTable%d(iTableId)" class="timelineTable"> |
| 462 | if( baseCheckin ){ |
| 463 |
| --- src/finfo.c | |
| +++ src/finfo.c | |
| @@ -453,10 +453,13 @@ | |
| 453 | }else{ |
| 454 | blob_appendf(&title, "History of "); |
| 455 | hyperlinked_path(zFilename, &title, 0, "tree", ""); |
| 456 | if( fShowId ) blob_appendf(&title, " (%d)", fnid); |
| 457 | } |
| 458 | if( uBg ){ |
| 459 | blob_append(&title, " (color-coded by user)", -1); |
| 460 | } |
| 461 | @ <h2>%b(&title)</h2> |
| 462 | blob_reset(&title); |
| 463 | pGraph = graph_init(); |
| 464 | @ <table id="timelineTable%d(iTableId)" class="timelineTable"> |
| 465 | if( baseCheckin ){ |
| 466 |
+1
-1
| --- www/rebaseharm.md | ||
| +++ www/rebaseharm.md | ||
| @@ -3,11 +3,11 @@ | ||
| 3 | 3 | Fossil deliberately omits a "rebase" command, because the original |
| 4 | 4 | designer of Fossil (and [original author][vhist] of this article) considers rebase to be |
| 5 | 5 | an anti-pattern to be avoided. This article attempts to |
| 6 | 6 | explain that point of view. |
| 7 | 7 | |
| 8 | -[vhist]: https://fossil-scm.org/fossil/finfo?name=www/rebaseharm.md | |
| 8 | +[vhist]: /finfo?name=www/rebaseharm.md&ubg | |
| 9 | 9 | |
| 10 | 10 | ## 1.0 Rebasing is dangerous |
| 11 | 11 | |
| 12 | 12 | Most people, even strident advocates of rebase, agree that rebase can |
| 13 | 13 | cause problems when misused. The Git rebase documentation talks about the |
| 14 | 14 |
| --- www/rebaseharm.md | |
| +++ www/rebaseharm.md | |
| @@ -3,11 +3,11 @@ | |
| 3 | Fossil deliberately omits a "rebase" command, because the original |
| 4 | designer of Fossil (and [original author][vhist] of this article) considers rebase to be |
| 5 | an anti-pattern to be avoided. This article attempts to |
| 6 | explain that point of view. |
| 7 | |
| 8 | [vhist]: https://fossil-scm.org/fossil/finfo?name=www/rebaseharm.md |
| 9 | |
| 10 | ## 1.0 Rebasing is dangerous |
| 11 | |
| 12 | Most people, even strident advocates of rebase, agree that rebase can |
| 13 | cause problems when misused. The Git rebase documentation talks about the |
| 14 |
| --- www/rebaseharm.md | |
| +++ www/rebaseharm.md | |
| @@ -3,11 +3,11 @@ | |
| 3 | Fossil deliberately omits a "rebase" command, because the original |
| 4 | designer of Fossil (and [original author][vhist] of this article) considers rebase to be |
| 5 | an anti-pattern to be avoided. This article attempts to |
| 6 | explain that point of view. |
| 7 | |
| 8 | [vhist]: /finfo?name=www/rebaseharm.md&ubg |
| 9 | |
| 10 | ## 1.0 Rebasing is dangerous |
| 11 | |
| 12 | Most people, even strident advocates of rebase, agree that rebase can |
| 13 | cause problems when misused. The Git rebase documentation talks about the |
| 14 |