Skip to main content

Module git

Module git 

Source

Structs§

BlameLine
Blameの1行分のデータ
CommitDiff
コミットのdiff情報(統計 + ファイル一覧)
DiffStats
コミットのファイル変更統計
FileChange
コミット内の個別ファイル変更
FileHistoryEntry
ファイル履歴のエントリ
FileStatus
ファイルステータス
RepoInfo
リポジトリ情報

Enums§

FileChangeStatus
ファイル変更のステータス
FileStatusKind
ファイルのステータス種別

Functions§

checkout_branch
ブランチを切り替え
checkout_branch_in_repo
Repositoryでブランチを切り替え
create_commit
コミットを作成
create_commit_in_repo
Repositoryでコミットを作成
fetch_remote
リモートからフェッチ
fetch_remote_at_path
パスを指定してリモートからフェッチ(バックグラウンドスレッド用)
fetch_remote_in_repo
Repositoryでリモートからフェッチ
get_blame
ファイルのblame情報を取得
get_blame_from_repo
Repositoryからファイルのblame情報を取得
get_commit_diff
コミットの詳細なdiff情報を取得(統計 + ファイル一覧)
get_commit_diff_from_repo
Repositoryからコミットの詳細なdiff情報を取得
get_commit_files
コミットの変更ファイル一覧を取得
get_commit_files_from_repo
Repositoryからコミットの変更ファイル一覧を取得
get_file_history
特定ファイルの変更履歴を取得
get_file_history_from_repo
Repositoryから特定ファイルの変更履歴を取得
get_head_hash
現在のHEADのハッシュを取得
get_head_hash_cached
HEADのハッシュを取得(キャッシュ対応版)
get_head_hash_from_repo
RepositoryからHEADのハッシュを取得
get_index_mtime
.git/indexファイルの更新時刻を取得(ワーキングツリー変更検知用)
get_index_mtime_cached
インデックスの更新時刻を取得(キャッシュ対応版)
get_index_mtime_from_repo
Repositoryから.git/indexの更新時刻を取得
get_repo_info_cached
リポジトリ情報を取得(キャッシュ対応版)
get_status
ワーキングディレクトリのステータスを取得
get_status_cached
ワーキングディレクトリのステータスを取得(キャッシュ対応版)
get_status_from_repo
Repositoryからワーキングディレクトリのステータスを取得
get_user_name
git config user.name を取得
get_user_name_from_repo
Repositoryからgit config user.nameを取得
has_staged_files
ステージ済みファイルがあるかどうか
has_staged_files_in_repo
Repositoryでステージ済みファイルがあるかどうか
list_branches
ローカルブランチ一覧を取得
list_branches_cached
ローカルブランチ一覧を取得(キャッシュ対応版)
list_branches_from_repo
Repositoryからローカルブランチ一覧を取得 並び順: 現在のブランチ → main/master/develop → その他(アルファベット順)
load_events
コミット履歴をGitEventとして取得
load_events_from_repo
Repositoryからコミット履歴をGitEventとして取得
push
リモートにプッシュ
push_in_repo
Repositoryでリモートにプッシュ
stage_all
全ファイルをステージング
stage_all_in_repo
Repositoryで全ファイルをステージング
stage_file
ファイルをステージング
stage_file_in_repo
Repositoryでファイルをステージング
unstage_all
全ファイルをアンステージング
unstage_all_in_repo
Repositoryで全ファイルをアンステージング
unstage_file
ファイルをアンステージング
unstage_file_in_repo
Repositoryでファイルをアンステージング