GitCli (fnord v0.8.83)

View Source

Wrapper for direct git CLI calls. Provides helper functions for repo checks, formatted info messages, and listing ignored files in a given root.

Summary

Functions

Returns an empty map if root is nil, otherwise behaves as before.

Functions

current_branch()

@spec current_branch() :: String.t() | nil

git_info()

@spec git_info() :: String.t()

ignored_files(root)

@spec ignored_files(String.t() | nil) :: map()

Returns an empty map if root is nil, otherwise behaves as before.

is_git_repo?()

@spec is_git_repo?() :: boolean()

is_worktree?()

repo_root()

worktree_root()