1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 03:29:26 +00:00

[general] Miscellaneous cleanup and formatting

This commit is contained in:
Indrajit Raychaudhuri
2017-08-04 12:54:19 -05:00
parent 7b5196ca66
commit a60499f933
11 changed files with 18 additions and 19 deletions

View File

@ -29,7 +29,7 @@ case "$state" in
remote="$words[(($CURRENT - 1))]"
branches_or_tags=($(
git ls-remote --heads --tags "$remote" 2>/dev/null | cut -f2
git ls-remote --heads --tags "$remote" 2> /dev/null | cut -f2
))
branches=(HEAD ${${(M)branches_or_tags[@]##refs/heads/?##}##refs/heads/})
@ -39,7 +39,7 @@ case "$state" in
_describe -t tag 'tags' tags && ret=0
;;
(file)
files=(${(0)"$(_call_program files git ls-files -z --exclude-standard 2>/dev/null)"})
files=(${(0)"$(_call_program files git ls-files -z --exclude-standard 2> /dev/null)"})
_wanted file expl 'file' _multi_parts - / files && ret=0
;;
esac

View File

@ -39,7 +39,7 @@ if (( $references[(i)$reference] == $#references + 1 )); then
fi
if [[ "$reference" == 'HEAD' ]]; then
reference="$(git rev-parse HEAD 2>/dev/null)"
reference="$(git rev-parse HEAD 2> /dev/null)"
fi
file="$3"