1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 12:48:01 +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

@ -5,6 +5,19 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# Settings
#
#
# Status
zstyle -s ':prezto:module:git:status:ignore' submodules '_git_status_ignore_submodules' \
|| _git_status_ignore_submodules='none'
#
# Aliases
#
# Git
alias g='git'
@ -151,8 +164,8 @@ alias gSu='git submodule foreach git pull origin master'
alias gSx='git-submodule-remove'
# Working Copy (w)
alias gws='git status --short'
alias gwS='git status'
alias gws='git status --ignore-submodules=${_git_status_ignore_submodules} --short'
alias gwS='git status --ignore-submodules=${_git_status_ignore_submodules}'
alias gwd='git diff --no-ext-diff'
alias gwD='git diff --no-ext-diff --word-diff'
alias gwr='git reset --soft'

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.

View File

@ -49,7 +49,7 @@ zstyle ':prezto:module:editor' keymap 'emacs'
#
# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
# zstyle ':prezto:module:git:ignore' submodule 'all'
# zstyle ':prezto:module:git:status:ignore' submodules 'all'
#
# GNU Utility