Module git

Module git 

Source
Expand description

Git integration for detecting changed files

Structs§

ChangedFile
A changed file in git
CommitEntry
Commit metadata for log views
CommitStats
Summary stats for a commit

Enums§

FileStatus
Status of a file in git
GitError

Functions§

get_changes_between
Get changes between two commits or refs
get_changes_between_index
Get changes between a commit and the staged index (commit vs index)
get_current_branch
Get the current git branch name
get_file_at_commit
Get the content of a file at a specific commit
get_head_content
Get the HEAD content of a file
get_recent_commits
Get recent commits with short stats
get_repo_root
Get the root of the git repository
get_staged_changes
Get list of staged changed files (index vs HEAD)
get_staged_content
Get the staged content of a file
get_uncommitted_changes
Get list of uncommitted changed files (staged and unstaged)
is_git_repo
Check if a directory is a git repository