Skip to main content

Crate tokmd_git

Crate tokmd_git 

Source
Expand description

§tokmd-git

Tier 2 (Utilities)

Streaming git log adapter for tokmd analysis. Collects commit history without loading the entire history into memory.

§What belongs here

  • Git history collection
  • Commit parsing (timestamp, author, affected files)
  • Streaming interface

§What does NOT belong here

  • Analysis computation (use tokmd-analysis)
  • Git history modification
  • Complex git operations (use git2 crate directly if needed)

Structs§

GitCommit

Enums§

CommitIntentKind
Classification of a commit’s intent, derived from subject line.
GitRangeMode
Git range syntax for comparing commits.

Functions§

classify_intent
Classify a commit subject line into an intent kind.
collect_history
get_added_lines
Get the set of added line numbers per file between two refs.
git_available
repo_root
resolve_base_ref
Resolve a base ref with a fallback chain for CI environments.
rev_exists
Check whether a git revision resolves to a valid commit.