From c038edd0423891a23c435a11d00ee903eafb18d6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 6 Sep 2026 16:12:55 -1000 Subject: Document the line anchors in the readme --- README.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.txt b/README.txt index d8f16d2..5b5d2dd 100644 --- a/README.txt +++ b/README.txt @@ -191,6 +191,11 @@ feed rather than a page and accepts h, path and all. The clone endpoints under info and objects implement the dumb HTTP protocol and are only present when http clone is enabled. +A url fragment can address lines inside a file. The tree and blame pages give +every line an anchor named n followed by its number, so #n17 jumps to line 17 +and highlights it, and a range written #n17-n24 highlights the whole run and +scrolls it into view. + Some worked examples, in the url= form. ?url= the repository index -- cgit v2.8.0