1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 10:51:41 +00:00

Rename the Git status ignore submodules zstyle pattern

This commit is contained in:
Sorin Ionescu
2012-10-01 21:20:59 -04:00
parent 768c9d6ad3
commit bd9327ca3f
3 changed files with 20 additions and 7 deletions

View File

@ -192,7 +192,7 @@ function git-info {
local dirty=0
local dirty_format
local dirty_formatted
local ignore_submodule
local ignore_submodules
local -A info_formats
local info_format
local line_number=0
@ -258,9 +258,9 @@ function git-info {
ahead_and_behind_cmd='git rev-list --count --left-right HEAD...@{upstream}'
# Ignore submodule status.
zstyle -s ':prezto:module:git:ignore' submodule 'ignore_submodule'
if [[ -n "$ignore_submodule" ]]; then
status_cmd+=" --ignore-submodules=${ignore_submodule}"
zstyle -s ':prezto:module:git:status:ignore' submodules 'ignore_submodules'
if [[ -n "$ignore_submodules" ]]; then
status_cmd+=" --ignore-submodules=${ignore_submodules}"
fi
# Format commit.