Skip to main content

Module git

Module git 

Source

Structs§

GitRemoteUrl
Host + path split out of a parsed git remote URL.
NameStatusZEntry

Enums§

GitContextError
NameStatusParseError

Functions§

has_staged_changes
has_staged_changes_in
is_git_available
is_git_repo
is_git_repo_in
is_inside_work_tree
is_inside_work_tree_in
is_lockfile_path
parse_git_remote_url
Parse a git remote URL into a host/path pair, accepting the four shapes git itself accepts:
parse_name_status_z
repo_root
repo_root_in
repo_root_or_cwd
require_repo
require_repo_in
require_work_tree
require_work_tree_in
rev_parse
rev_parse_in
run_output
run_output_in
run_output_in_with_env
run_output_with_env
run_status_inherit
run_status_inherit_in
run_status_inherit_in_with_env
run_status_inherit_with_env
run_status_quiet
run_status_quiet_in
staged_name_only
staged_name_only_in
strip_userinfo
Return the substring after the last @, or the input unchanged when no @ is present. Used by git remote URL parsers to drop the userinfo@ prefix from a host segment (or a host+path string, since / cannot appear inside userinfo, splitting at the last @ is safe for both shapes).
suggested_scope_from_staged_paths
trim_trailing_newlines