From 989b2233b7d721f9f39cbaaea56e0805f6d76528 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Mon, 13 Aug 2012 01:00:18 +1200 Subject: [PATCH] _git_expand_args_escaped not needed --- lib/git/status_shortcuts.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/git/status_shortcuts.sh b/lib/git/status_shortcuts.sh index e5a1451..f2fbef2 100644 --- a/lib/git/status_shortcuts.sh +++ b/lib/git/status_shortcuts.sh @@ -161,13 +161,9 @@ git_expand_args() { IFS="$OLDIFS" } -# Wrapper function around git_expand_argsthat also escapes spaces in paths with '\ ' -# (internal functions need spaces unescaped.) -_git_expand_args_escaped() { git_expand_args "$@" | sed -e "s/ /\\\ /g"; } - # Execute a command with expanded args, e.g. Delete files 6 to 12: $ ge rm 6-12 # Fails if command is a number or range (probably not worth fixing) -exec_git_expand_args() { eval "$(_git_expand_args_escaped "$@")"; } +exec_git_expand_args() { eval "$(git_expand_args "$@" | sed -e "s/ /\\\ /g")"; } # Clear numbered env variables git_clear_vars() {