mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 18:39:26 +00:00
git: Optimize scripts for git helper functions
Optimize git internal calls and adjustment git helper functions to use more idiomatic Zsh conventions avoiding external calls.
This commit is contained in:
committed by
Indrajit Raychaudhuri
parent
efebe3efec
commit
a3643f124e
@ -22,9 +22,9 @@ command git config --file "$(git-dir)/config" --remove-section "submodule.${1}"
|
||||
command git config --file "$(git-root)/.gitmodules" --remove-section "submodule.${1}" &> /dev/null
|
||||
command git add .gitmodules
|
||||
|
||||
command git rm --cached -rf "${1}"
|
||||
rm -rf "${1}"
|
||||
rm -rf "$(git-dir)/modules/${1}"
|
||||
command git rm --cached -rf "$1"
|
||||
rm -rf "$1"
|
||||
rm -rf "$(git-dir)/modules/$1"
|
||||
|
||||
return 0
|
||||
|
||||
|
Reference in New Issue
Block a user