Skip to content

git locks wait: block until paths are free without claiming, and watch: stream store changes as JSONL #7

Description

@flyingrobots

with --wait polls once a second inside one command. Two cheaper primitives: wait <path>... [--timeout s] exits 0 the moment every path is free (or expired) without taking anything, so a caller can sequence its own claim; and watch streams one JSON line per change in the store (claimed, released, expired, swept, acquired) by polling for-each-ref and diffing, so an orchestrator can react instead of poll. Both are pure bash. Stretch: watch --path <p> filters.

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