Skip to main content

Module reflog

Module reflog 

Source
Expand description

Reflog-residue analysis: history-rewriting operations recorded in the reflog.

Git stamps every ref movement into .git/logs/<ref> with a message naming the operation that moved it (commit:, reset:, rebase (finish):, filter-branch:, commit (amend):, … (forced update)). A message whose operation rewrites history is residue an examiner follows — the original tip is still resurrectable from the reflog and the object store — never a verdict.

Enums§

ReflogAnomaly
A history-rewriting operation observed in a ref’s reflog.

Functions§

audit_reflog
Read refname’s reflog from repo and audit it for history rewrites.
audit_reflog_entries
Audit a set of reflog entries for ref_name, flagging history rewrites (pure; side-effect free).
classify_rewrite
Classify a reflog message as a history-rewriting operation, returning the operation keyword if it is one (pure; the analyzer’s decision core).