Structs§
- Prompt
- Represents the collected Git information for rendering the prompt.
Constants§
- ACTION_
AM - ACTION_
AM_ REBASE - ACTION_
BISECT - ACTION_
CHERRY - ACTION_
CHERRY_ OR_ REVERT - ACTION_
CHERRY_ SEQ - ACTION_
MERGE - ACTION_
REBASE - Constants representing various Git actions or states. These are used to provide short, descriptive labels for the current Git operation.
- ACTION_
REBASE_ I - ACTION_
REBASE_ M - NO_
BRANCH
Functions§
- build_
prompt_ fast - Builds a
Promptstruct containing fast/synchronous local Git information. - get_
action - Determines the current Git action (e.g., rebase, merge, cherry-pick) by checking
for the presence of specific files in the
.gitdirectory. - get_
auth_ cache_ path - Generates the path for the Git authentication cache file for a given repository.
- get_
status - Returns a string summarizing the git status of the repository.
- is_
ahead_ behind_ remote - Determines how many commits the current HEAD is ahead or behind its upstream remote.
- is_
staged - Checks if there are any staged changes in the repository.
- read_
auth_ status - Reads the cached Git authentication status for a given repository.
- unix_
timestamp - Returns the current Unix timestamp (seconds since
UNIX_EPOCH).