F.5 Branches management

Function: mbfl_vc_git_branch_current_name
Function: mbfl_vc_git_branch_current_name_var CURRENT_BRANCH_NAME_RV

Print, or store in the result variable referenced by CURRENT_BRANCH_NAME_RV, the name of the current branch.

mbfl_declare_varref(CURRENT_BRANCH_NAME)

mbfl_vc_git_branch_current_name_var mbfl_datavar(CURRENT_BRANCH_NAME)
printf '%s' "$CURRENT_BRANCH_NAME"
Function: mbfl_vc_git_branch_list_all_var BRANCHES_RV

Acquire the list of all the branch names in the current repository and store them in the result array variable BRANCHES_RV (zero–based indexes).

mbfl_declare_index_array_varref(BRANCHES)

mbfl_vc_git_branch_list_all_var mbfl_datavar(BRANCHES_RV)
Function: mbfl_vc_git_branch_list_local_var BRANCHES_RV

Acquire the list of the local branch names in the current repository and store them in the result array variable BRANCHES_RV (zero–based indexes).

mbfl_declare_index_array_varref(BRANCHES)

mbfl_vc_git_branch_list_local_var mbfl_datavar(BRANCHES_RV)
Function: mbfl_vc_git_branch_list_remote_tracking_var BRANCHES_RV

Acquire the list of the remote tracking branch names in the current repository and store them in the result array variable BRANCHES_RV (zero–based indexes).

mbfl_declare_index_array_varref(BRANCHES)

mbfl_vc_git_branch_list_remote_tracking_var mbfl_datavar(BRANCHES_RV)

This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.