module Git
Defined in:
git.crClass Method Summary
-
.commands : Array(String)
An array of all builtin Git commands.
-
.current_branch : String | Nil
The name of the current branch or nil if there isn't one.
- .executable_path : String
-
.repo? : Bool
Whether or not we are currently in a git repo.
-
.run(args : Array(String)) : Process::Status
Run Git with the given arguments.
-
.uncommitted_changes : NamedTuple(staged_count: UInt32, unstaged_count: UInt32)
Get the counts of uncommitted changes for the shell prompt.
Class Method Detail
def self.uncommitted_changes : NamedTuple(staged_count: UInt32, unstaged_count: UInt32)
#
Get the counts of uncommitted changes for the shell prompt.