From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy at warmcat.com (Andy Green) Date: Thu, 21 Jun 2018 17:34:30 +0800 Subject: [PATCH v2 0/5] line range highlight In-Reply-To: References: Message-ID: <152957329993.21285.2517119299142660486.stgit@mail.warmcat.com> 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 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