Expand description
Process our event log.
We use Git hooks to record the actions that the user takes over time, and put them in persistent storage. Later, we play back the actions in order to determine what actions the user took on the repository, and which commits they’re still working on.
Modules§
- testing
- Testing helpers.
Structs§
- Event
Cursor - Events up to this cursor (exclusive) are available to the caller.
- Event
LogDb - Stores
Event
s on disk. - Event
Replayer - Processes events in order and determine the repo’s visible commits.
Enums§
- Commit
Activity Status - Whether or not a commit is considered active.
- Event
- An event that occurred to one of the commits in the repository.
- Event
Transaction Id - The ID associated with the transactions that created an event.
Constants§
- BRANCHLESS_
TRANSACTION_ ID_ ENV_ VAR - When this environment variable is set, we reuse the ID for the transaction which the caller has already started.
Functions§
- is_
gc_ ref - Determine whether a given reference is used to keep a commit alive.
- should_
ignore_ ref_ updates - Determines whether or not updates to the given reference should be ignored.