Fossil

Check-in [c8e0268a0d]
Login

Check-in [c8e0268a0d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Show the branch name in the extra section of the /brtimeline page.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | timeline-enhance-2025
Files: files | file ages | folders
SHA3-256: c8e0268a0d6d42126ac24e9683771ec2c51b2536e2ccbdc8ce6b9352deab94f4
User & Date: drh 2025-10-16 16:59:20.613
Context
2025-10-16
17:26
The "ng" (no-graph) query parameter still shows a node circle and colors the check-ins by branch name, but does not show lines connecting the node circles. The /brtimeline page always appears in Columnar mode. ... (check-in: ddd12b8597 user: drh tags: timeline-enhance-2025)
16:59
Show the branch name in the extra section of the /brtimeline page. ... (check-in: c8e0268a0d user: drh tags: timeline-enhance-2025)
15:10
Timeline computes the main branch name once, instead of once per row. ... (check-in: fa3e6ed20a user: drh tags: timeline-enhance-2025)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/branch.c.
1036
1037
1038
1039
1040
1041
1042


1043

1044
1045
1046
1047
1048
1049
1050
    "   AND tagxref.tagid=tag.tagid"
    "   AND tagxref.tagtype>0"
    "   AND tag.tagname GLOB 'sym-*'",
    rid
  );
  while( db_step(&q)==SQLITE_ROW ){
    const char *zTagName = db_column_text(&q, 0);


    @  %z(href("%R/timeline?r=%T",zTagName))<button>timeline</button></a>

  }
  db_finalize(&q);
}

/*
** WEBPAGE: brtimeline
**







>
>

>







1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
    "   AND tagxref.tagid=tag.tagid"
    "   AND tagxref.tagtype>0"
    "   AND tag.tagname GLOB 'sym-*'",
    rid
  );
  while( db_step(&q)==SQLITE_ROW ){
    const char *zTagName = db_column_text(&q, 0);
    const char *zBrName = branch_of_rid(rid);
    @  branch:&nbsp;<b>%h(zBrName)</b>
    @  %z(href("%R/timeline?r=%T",zTagName))<button>timeline</button></a>
    fossil_free(zBrName);
  }
  db_finalize(&q);
}

/*
** WEBPAGE: brtimeline
**