Skip to content

History: who held a path, from the store's reflogs #9

Description

@flyingrobots

Enable core.logAllRefUpdates=always in the store at creation so every ref move is logged for free, then git locks history <path> [--job <id>] reads git reflog on the path ref and emits one JSON line per claim/release/eviction with holder, job and times. Zero cost at claim time, answers 'who had this yesterday' and 'how often is this contended', and gives sweep an audit trail. Retention is git's reflog expiry, configurable in the store.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaCool idea: worth discussing before building

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions