Raxol.PreCommit.GitHelper (Raxol v2.0.1)

View Source

Optimized Git operations for pre-commit checks.

Provides cached and batched Git operations to improve performance.

Summary

Functions

Returns a specification to start this module under a supervisor.

Clear the git cache.

Get staged files of specific types efficiently.

Get all staged files, with caching and filtering.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clear_cache()

Clear the git cache.

get_staged_elixir_files()

Get staged files of specific types efficiently.

get_staged_files(opts \\ [])

Get all staged files, with caching and filtering.

Options:

  • extensions: List of file extensions to filter (e.g., [".ex", ".exs"])
  • exclude_paths: List of path patterns to exclude

start_link(opts \\ [])