- boolean:
true
orfalse
string - integer: string representing a decimal integer
- file path: string pointing to a file or a directory
-
GBG_DIR
: file pathIntroduction: 0.0.9
Root path of the God Bless Git project, i.e. path the directory containing the
god_bless_git.sh
file. -
GBG_VERSION
: version numberIntroduction: 0.0.10
Current version of God Bless Git. Also allows availability detection of the
god_bless_git
function.
-
gbg_is_a_git_repo
: booleanIntroduction: 0.0.9
Is the working directory in a git repository?
-
gbg_repo_git_dir
: file pathIntroduction: 0.0.9
Absolute path of the
.git
folder of the working repository. -
gbg_repo_top_level
: file pathIntroduction: 0.0.9
Absolute path of the folder containing the
.git
folder of the working repository. -
gbg_repo_just_init
: booleanIntroduction: 0.0.9
Is the working repository history empty (no existing commit)?
-
gbg_repo_has_stashes
: booleanIntroduction: 0.0.9
Does the working repository has stashes commits?
-
gbg_repo_stashes_num
: integerIntroduction: 0.0.9
Number of stashes in the working repository.
-
gbg_repo_has_conflicts
: booleanIntroduction: 0.0.11
Are there conflicting files in the repository?
-
gbg_repo_conflicts_num
: integerIntroduction: 0.0.11
Number of conflicting files in the repository.
-
gbg_head_hash
: stringIntroduction: 0.0.9
Full SHA1 hash of the HEAD commit.
-
gbg_head_branch
: stringIntroduction: 0.0.9
Short reference of HEAD commit (branch name).
-
gbg_head_is_detached
: booleanIntroduction: 0.0.9
Is current
HEAD
detached (not attached to any branch)? -
gbg_head_is_on_tag
: booleanIntroduction: 0.0.9
Does a tag reference
HEAD
? -
gbg_head_tag
: stringIntroduction: 0.0.9
Name of the tag referencing
HEAD
.
-
gbg_workspace_has_modifications
: booleanIntroduction: 0.0.9
Are there modified files in the workspace?
-
gbg_workspace_modifications_num
: integerIntroduction: 0.0.9
Number of files modified in the workspace.
-
gbg_workspace_has_deletions
: booleanIntroduction: 0.0.9
Are there deleted files in the workspace?
-
gbg_workspace_deletions_num
: integerIntroduction: 0.0.9
Number of files deleted in the workspace.
-
gbg_workspace_has_untracked
: booleanIntroduction: 0.0.9
Are there files in the working directory not tracked by git?
-
gbg_workspace_untracked_num
: integerIntroduction: 0.0.9
Number of untracked files in the workspace.
-
gbg_workspace_has_ignored
: booleanIntroduction: 0.0.9
Are there files in the working directory ignored by git?
-
gbg_workspace_ignored_num
: integerIntroduction: 0.0.9
Number of ignored files in the workspace.
-
gbg_index_has_modifications
: booleanIntroduction: 0.0.9
Are there modifications indexed for commit?
-
gbg_index_modifications_num
: integerIntroduction: 0.0.9
Number of modified files indexed for commit.
-
gbg_index_has_moves
: booleanIntroduction: 0.0.9
Are there moves/renames indexed for commit?
-
gbg_index_moves_num
: integerIntroduction: 0.0.9
Number of moved/renamed files indexed for commit.
-
gbg_index_has_deletions
: booleanIntroduction: 0.0.9
Are there deletions indexed for commit?
-
gbg_index_deletions_num
: integerIntroduction: 0.0.9
Number of deleted files indexed for commit.
-
gbg_index_has_additions
: booleanIntroduction: 0.0.9
Are there new files indexed for commit?
-
gbg_index_additions_num
: integerIntroduction: 0.0.9
Number of new files indexed for commit.
-
gbg_upstream_has_upstream
: booleanIntroduction: 0.0.9
Is the current branch configured to follow an upstream branch?
-
gbg_upstream_name
: stringIntroduction: 0.0.9
Name of the followed upstream branch. This contains the remote name and the branch name as:
origin/master
. -
gbg_upstream_has_commits_ahead
: booleanIntroduction: 0.0.9
Is the upstream branch ahead of the local one (contains commits not present in the local one).
-
gbg_upstream_commits_ahead_num
: integerIntroduction: 0.0.9
Number of commits in upstream branch but not in local one.
-
gbg_upstream_has_commits_behind
: booleanIntroduction: 0.0.9
Is the upstream branch behind the local one (do not contains commits present in the local one).
-
gbg_upstream_commits_behind_num
: integerIntroduction: 0.0.9
Number of commits not in upstream branch but in local one.
-
gbg_upstream_has_diverged
: booleanIntroduction: 0.0.9
Does local and upstream branches have diverged (ahead and behind)
- __ A __
- additions_num (gbg_index)
- __ B __
- branch (gbg_head)
- __ C __
- commits_ahead_num (gbg_upstream)
- commits_behind_num (gbg_upstream)
- conflicts_num (gbg_repo)
- __ D __
- deletions_num (gbg_index)
- deletions_num (gbg_workspace)
- __ G __
- git_dir (gbg_repo)
- __ H __
- has_additions (gbg_index)
- has_commits_ahead (gbg_upstream)
- has_commits_behind (gbg_upstream)
- has_conflicts (gbg_repo)
- has_deletions (gbg_index)
- has_deletions (gbg_workspace)
- has_diverged (gbg_upstream)
- has_ignored (gbg_workspace)
- has_modifications (gbg_index)
- has_modifications (gbg_workspace)
- has_moves (gbg_index)
- has_stashes (gbg_repo)
- has_untracked (gbg_workspace)
- has_upstream (gbg_upstream)
- hash (gbg_head)
- __ I __
- ignored_num (gbg_workspace)
- is_a_git_repo (gbg)
- is_detached (gbg_head)
- is_on_tag (gbg_head)
- __ J __
- just_init (gbg_repo)
- __ M __
- modifications_num (gbg_index)
- modifications_num (gbg_workspace)
- moves_num (gbg_index)
- __ N __
- name (gbg_upstream)
- __ S __
- stashes_num (gbg_repo)
- __ T __
- tag (gbg_head)
- top_level (gbg_repo)
- __ U __
- untracked_num (gbg_workspace)