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.

drh 2019-09-13 12:40 trunk
Commit 80f982518b4e33e074693e7f55ec58a0f9ce19ddb816fd724041e9cf628733fe
2 files changed +3 +1 -1
--- src/finfo.c
+++ src/finfo.c
@@ -453,10 +453,13 @@
453453
}else{
454454
blob_appendf(&title, "History of ");
455455
hyperlinked_path(zFilename, &title, 0, "tree", "");
456456
if( fShowId ) blob_appendf(&title, " (%d)", fnid);
457457
}
458
+ if( uBg ){
459
+ blob_append(&title, " (color-coded by user)", -1);
460
+ }
458461
@ <h2>%b(&title)</h2>
459462
blob_reset(&title);
460463
pGraph = graph_init();
461464
@ <table id="timelineTable%d(iTableId)" class="timelineTable">
462465
if( baseCheckin ){
463466
--- 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
--- www/rebaseharm.md
+++ www/rebaseharm.md
@@ -3,11 +3,11 @@
33
Fossil deliberately omits a "rebase" command, because the original
44
designer of Fossil (and [original author][vhist] of this article) considers rebase to be
55
an anti-pattern to be avoided. This article attempts to
66
explain that point of view.
77
8
-[vhist]: https://fossil-scm.org/fossil/finfo?name=www/rebaseharm.md
8
+[vhist]: /finfo?name=www/rebaseharm.md&ubg
99
1010
## 1.0 Rebasing is dangerous
1111
1212
Most people, even strident advocates of rebase, agree that rebase can
1313
cause problems when misused. The Git rebase documentation talks about the
1414
--- 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

Keyboard Shortcuts

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