Skip to content

Commit

Permalink
Always format Git dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinHebert authored and sorin-ionescu committed Apr 11, 2012
1 parent 5d649b1 commit a18d31a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/git/functions/git-info
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# zstyle ':omz:module:git' deleted 'deleted:%d'
#
# # %D - Indicator to notify of dirty files.
# zstyle ':omz:module:git' dirty 'dirty:%D'
# zstyle ':omz:module:git' dirty '%(D.clean.dirty:%D)'
#
# # %m - Indicator to notify of modified files.
# zstyle ':omz:module:git' modified 'modified:%m'
Expand Down Expand Up @@ -376,10 +376,8 @@ function git-info {
fi

# Format dirty.
if (( $dirty > 0 )); then
zstyle -s ':omz:module:git' dirty 'dirty_format'
zformat -f dirty_formatted "$dirty_format" "D:$dirty"
fi
zstyle -s ':omz:module:git' dirty 'dirty_format'
zformat -f dirty_formatted "$dirty_format" "D:$dirty"

# Format info.
zstyle -a ':omz:module:git' info 'info_formats'
Expand Down

0 comments on commit a18d31a

Please sign in to comment.