2011-09-05 06:37:36 +02:00
|
|
|
#compdef git-info
|
|
|
|
#autoload
|
|
|
|
|
2012-02-01 05:37:51 +01:00
|
|
|
#
|
|
|
|
# Completes git-info.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2012-09-30 21:30:18 +02:00
|
|
|
if ! is-true "$(git rev-parse --is-inside-work-tree 2> /dev/null)"; then
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
2011-09-05 06:37:36 +02:00
|
|
|
_arguments "1:toggle:((
|
2012-01-20 05:39:21 +01:00
|
|
|
on\:'enable in-prompt information for the current repository'
|
|
|
|
off\:'disable in-prompt information for the current repository'
|
2011-09-05 06:37:36 +02:00
|
|
|
))" && return 0
|
|
|
|
|