this prevents our shim from calling pkgx for `git -C . status`, blowing up prompt responsiveness.

ref: https://github.com/pkgxdev/pkgx/issues/784
This commit is contained in:
Jacob Heider 2023-11-14 14:31:33 -05:00
parent 9439495304
commit fc48863ecf
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -4,7 +4,12 @@ set -e
find_git_command() { find_git_command() {
for arg in "$@"; do for arg in "$@"; do
if test "$SKIP" = 1; then
SKIP=0
continue
fi
case $arg in case $arg in
-C) SKIP=1; continue;;
-*);; -*);;
*) *)
echo "$arg" echo "$arg"