From: Andrew DeFaria Date: Thu, 28 Mar 2019 18:22:00 +0000 (-0700) Subject: Hopefully fixed git function to handle files with spaces X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=20dba32a51b3f2d58623ae1151987aca7a9b5f16;p=clearscm.git Hopefully fixed git function to handle files with spaces --- diff --git a/rc/git b/rc/git index 341ca7b..7e235fe 100644 --- a/rc/git +++ b/rc/git @@ -34,7 +34,7 @@ function git () { if [ "${git:0:3}" != "no " ]; then if [ "$1" = "checkout" -o "$1" = "co" ]; then - $git $@ + $git "$@" set_title elif [ "$1" = "files" ]; then if [ -z "$2" ]; then @@ -45,7 +45,7 @@ function git () { $git show --pretty="" --name-only $2 fi else - $git $@ + $git "$@" fi fi } # git