class

Carbon::VCS::Base

Inherits Reference < Object

Instance methods

branch_name

The name of the active branch

Source
commit_count

Total count of commits in the current branch history

Source
dirty?

Returns true if working directory has uncommitted or untracked changes

Source
head_hash

The current HEAD commit hash (short or full)

Source
initialized?

Returns true if VCS repository is properly initialized

Source
repo_root

Root directory of the repository

Source
stage(files : Enumerable(String | Path)) : Bool

Stage a set of files into index

Source
vcs_dir

Internal directory storing VCS metadata (e.g. .git)

Source