diff options
| author | Joe Mou <dev@mou.fo> | 2026-09-03 01:37:35 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-09-03 22:16:44 -0400 |
| commit | a61a96c6d72d4297b2539f4033fbfbd0a3d178ab (patch) | |
| tree | 7aa850c87bee9dbffd6032e160abfd14098c447a /cgithub/LICENSE | |
| parent | 501587e256a065816f7eb6007030e728955a32dc (diff) | |
Link blobs to their history and back
Nothing in a commits payload says whether the path it lists is a file or
a directory: currentBlobPath, despite the name, is only the path filter,
and is set for a directory just the same. GitHub's own UI cannot tell
either, and points its browse button at /blob/<oid>/<path> so that the
redirect resolves a file to its blob. We do the same, and the blob route
already turns that redirect into one of our own tree URLs.
Breadcrumbs now stay in the view they were clicked from, so walking up
from a history lands in the history of each parent directory rather than
in its listing. The last crumb remains the page you are already on.
A path with no commits now says so rather than rendering an empty page.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R7pRKdmTvNDgT4ZXrwkbH8
Diffstat (limited to 'cgithub/LICENSE')
0 files changed, 0 insertions, 0 deletions
