show origin head in summary
This commit is contained in:
parent
00b115a598
commit
fe4544012c
1 changed files with 3 additions and 3 deletions
6
gis
6
gis
|
|
@ -151,14 +151,14 @@ for dir in "${git_dirs[@]}"; do
|
|||
if [ "$current_branch" = "$origin_head" ]; then
|
||||
output="${output};${text_bold}${current_branch}${text_reset}\n"
|
||||
else
|
||||
output="${output};${text_bold}${text_yellow}${current_branch}${text_reset}\n"
|
||||
output="${output};${text_bold}${text_yellow}${current_branch}${text_reset} (${origin_head}${text_reset})\n"
|
||||
fi
|
||||
|
||||
|
||||
done
|
||||
|
||||
# Print keys
|
||||
if [[ "$all_status_keys" ]]; then
|
||||
echo "Keys"
|
||||
echo "${text_bold}Status${text_reset}"
|
||||
[[ "$all_status_keys" == *"\$"* ]] && echo " ${text_bold}${text_red}\$${text_reset} - Dirty stash"
|
||||
[[ "$all_status_keys" == *"?"* ]] && echo " ${text_bold}${text_red}?${text_reset} - Untracked files"
|
||||
[[ "$all_status_keys" == *"!"* ]] && echo " ${text_bold}${text_red}!${text_reset} - Local changes"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue