The following series adds the ability to direct the browser to highlight specific lines and ranges of lines in /tree/, /source/, and /blame/ views.
As part of the implementation it adds a new cgit.js file that is included in cgit page <head> along with a new config "js" to specify its url, defaulting to "/cgit.js". You can find the patches as a usable tree here https://warmcat.com/git/cgit/log/ --- Andy Green (5): config: add js cgit.js: introduce ui-shared: introduce line range highlight javascript ui-tree: use the line range highlight script ui-blame: use the line range highlight script Makefile | 1 + cgit.c | 3 +++ cgit.css | 8 ++++++++ cgit.h | 1 + cgit.js | 43 +++++++++++++++++++++++++++++++++++++++++++ cgitrc.5.txt | 4 ++++ ui-blame.c | 1 + ui-shared.c | 14 ++++++++++++++ ui-shared.h | 1 + ui-tree.c | 2 ++ 10 files changed, 78 insertions(+) create mode 100644 cgit.js -- Signature _______________________________________________ CGit mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/cgit
