Feature: Git-aware Last Edited By
Show git log author/date metadata in the page header badge.
Details
- Detect if the served directory is inside a git repository
- For each file, run
git log -1 --format="%an|%ae|%aI" to get last author and date
- Display in the page header: "Last edited by on "
- Cache git metadata and refresh on file changes
- Optionally show a "History" link or recent commit messages
- Gracefully degrade if not in a git repo (just show file mod time as today)
Why
Adds accountability and context — users can see who last touched a document and when, without leaving the browser.
Feature: Git-aware Last Edited By
Show git log author/date metadata in the page header badge.
Details
git log -1 --format="%an|%ae|%aI"to get last author and dateWhy
Adds accountability and context — users can see who last touched a document and when, without leaving the browser.