Skip to main content

Module git

Module git 

Source

Structs§

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

Enums§

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

Functions§

checkout_branch
ブランチを切り替え
checkout_branch_in_repo
Repositoryでブランチを切り替え
compare_branches
2つのブランチを比較
compare_branches_from_repo
Repositoryから2つのブランチを比較
create_branch
新しいブランチを作成
create_branch_in_repo
Repositoryで新しいブランチを作成
create_commit
コミットを作成
create_commit_in_repo
Repositoryでコミットを作成
delete_branch
ブランチを削除
delete_branch_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_file_patch
特定コミットの特定ファイルのパッチを取得
get_file_patch_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_stash_list
Stash一覧を取得
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_fast
diff統計をスキップして高速にイベントをロード(起動時用)
load_events_from_repo
Repositoryからコミット履歴をGitEventとして取得 include_diff_stats=falseで起動高速化(diff計算をスキップ)
pull
リモートからプル(fetch + fast-forward merge)
pull_in_repo
Repositoryでリモートからプル
push
リモートにプッシュ
push_in_repo
Repositoryでリモートにプッシュ
stage_all
全ファイルをステージング
stage_all_in_repo
Repositoryで全ファイルをステージング
stage_file
ファイルをステージング
stage_file_in_repo
Repositoryでファイルをステージング
stash_apply
Stashを適用(削除しない)
stash_drop
Stashを削除
stash_pop
Stashをpop(適用して削除)
stash_save
現在の変更をStashに保存
unstage_all
全ファイルをアンステージング
unstage_all_in_repo
Repositoryで全ファイルをアンステージング
unstage_file
ファイルをアンステージング
unstage_file_in_repo
Repositoryでファイルをアンステージング