module Git

Defined in:

git.cr

Class Method Summary

Class Method Detail

def self.commands : Array(String) #

An array of all builtin Git commands.


[View source]
def self.current_branch : String | Nil #

The name of the current branch or nil if there isn't one.


[View source]
def self.executable_path : String #

[View source]
def self.repo? : Bool #

Whether or not we are currently in a git repo.


[View source]
def self.run(args : Array(String)) : Process::Status #

Run Git with the given arguments.


[View source]
def self.uncommitted_changes : NamedTuple(staged_count: UInt32, unstaged_count: UInt32) #

Get the counts of uncommitted changes for the shell prompt.


[View source]