|
| None | git._dbg (*args, **kwargs) |
| str | git._redact_git_url (str text) |
| list[str] | git._redact_argv (list[str] argv) |
| subprocess.CompletedProcess[str] | git.git_run (list[str] argv, *, Path cwd, int timeout=DEFAULT_GIT_TIMEOUT, bool check=True) |
| bool | git.is_git_repo (Path path) |
| Path | git.get_repo_root (Path path) |
| str | git.current_branch (Path repo_root) |
| bool | git.is_detached_head (Path repo_root) |
| bool | git.has_uncommitted_changes (Path repo_root) |
| bool | git.has_untracked_files (Path repo_root) |
| list[Path] | git._resolve_and_filter (Iterable[str] entries, Path repo_root, Optional[set[str]] extensions) |
| list[Path] | git.git_changed_files (Path repo_root, Optional[set[str]] extensions=None) |
| list[Path] | git.git_staged_files (Path repo_root, Optional[set[str]] extensions=None) |
| str | git.last_commit_sha (Path repo_root, bool short=False) |
| str | git.last_commit_message (Path repo_root) |
| dict[str, str] | git.remote_urls (Path repo_root) |
| list[str] | git.list_tags (Path repo_root) |
| list[str] | git.get_commit_log (Path repo_root, str|None since_ref=None, str format_str="%H %s") |
| list[Path] | git.git_diff_name_only (Path repo_root, str ref, Optional[set[str]] extensions=None) |
| tuple[int, int] | git.ahead_behind (Path repo_root) |
| bool | git.branch_exists (Path repo_root, str name) |
| None | git.create_branch (Path repo_root, str name, str|None start_point=None) |
| None | git.switch_branch (Path repo_root, str name) |
| None | git.create_and_switch_branch (Path repo_root, str name, str|None start_point=None) |
| list[str] | git.list_branches (Path repo_root, *, bool remote=False) |
| None | git.stage_paths (Path repo_root, list[Path]|list[str] paths, *, bool update=False, bool all_=False) |
| None | git.unstage_paths (Path repo_root, list[Path]|list[str] paths) |
| None | git.restore_paths (Path repo_root, list[Path]|list[str] paths, *, bool staged=False) |
| int | git.stage_paths_interactive (Path repo_root, list[Path]|list[str] paths) |