Module eventlog

Source
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§

EventCursor
Events up to this cursor (exclusive) are available to the caller.
EventLogDb
Stores Events on disk.
EventReplayer
Processes events in order and determine the repo’s visible commits.

Enums§

CommitActivityStatus
Whether or not a commit is considered active.
Event
An event that occurred to one of the commits in the repository.
EventTransactionId
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.