Skip to content

Commit

Permalink
[Fix #64] Remove the clean git-info style
Browse files Browse the repository at this point in the history
Free up `%C` by using `%(D.clean.dirty:%D)` instead.
  • Loading branch information
sorin-ionescu committed Mar 27, 2012
1 parent 11f3d2c commit a06f13f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions plugins/git/functions/git-info
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ function git-info {
local branch_format
local branch_formatted
local branch_info
local clean
local clean_formatted
local commit
local commit_format
local commit_formatted
Expand Down Expand Up @@ -330,8 +328,6 @@ function git-info {
if (( $dirty > 0 )); then
zstyle -s ':omz:plugin:git:prompt' dirty 'dirty_format'
zformat -f dirty_formatted "$dirty_format" "D:$dirty"
else
zstyle -s ':omz:plugin:git:prompt' clean 'clean_formatted'
fi

# Format prompts.
Expand All @@ -350,7 +346,6 @@ function git-info {
"A:$ahead_formatted" \
"B:$behind_formatted" \
"b:$branch_formatted" \
"C:$clean_formatted" \
"c:$commit_formatted" \
"d:$deleted_formatted" \
"D:$dirty_formatted" \
Expand Down
3 changes: 0 additions & 3 deletions plugins/git/style.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ zstyle ':omz:plugin:git:prompt' behind 'behind:%B'
# %b - Branch name.
zstyle ':omz:plugin:git:prompt' branch '%b'

# %C - Indicator to notify of clean branch.
zstyle ':omz:plugin:git:prompt' clean 'clean'

# %c - SHA-1 hash.
zstyle ':omz:plugin:git:prompt' commit 'commit:%c'

Expand Down

0 comments on commit a06f13f

Please sign in to comment.