Skip to content

Commit

Permalink
Remove the git-info SIGINT message
Browse files Browse the repository at this point in the history
Users should read the Git module README on how to turn git-info on and
off.
  • Loading branch information
sorin-ionescu committed May 18, 2013
1 parent a7623aa commit 39b88fe
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions modules/git/functions/git-info
Original file line number Diff line number Diff line change
Expand Up @@ -89,32 +89,6 @@ function _git-action {
return 1
}

# Instructs the user on how to turn off git-info for the current repository.
function _git-info-abort {
if ! is-true "$_git_info_executing"; then
return 1
fi

cat >&2 <<EOF


Gathering status for certain repositories is time intensive.

To turn off in-prompt Git status for this repository, execute:

git info off

To revert, execute:

git-info on

EOF

unset _git_info_executing
return 0
}
add-zsh-trap INT _git-info-abort

# Gets the Git status information.
function git-info {
# Extended globbing is needed to parse repository status.
Expand Down Expand Up @@ -210,9 +184,6 @@ function git-info {
return 1
fi

# Used to abort git-info on SIGINT.
_git_info_executing=true

# Ignore submodule status.
zstyle -s ':prezto:module:git:status:ignore' submodules 'ignore_submodules'

Expand Down Expand Up @@ -445,7 +416,6 @@ function git-info {
done

unset REPLY
unset _git_info_executing

return 0
}
Expand Down

0 comments on commit 39b88fe

Please sign in to comment.