From 7049e7fb646d1f46e82de901118a9c554d346a2c Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 31 Jan 2012 01:13:00 +0800 Subject: [PATCH] Fixed git_add_patch_shortcuts --- lib/git/status_shortcuts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/git/status_shortcuts.sh b/lib/git/status_shortcuts.sh index 4b7bbcb..13b9481 100644 --- a/lib/git/status_shortcuts.sh +++ b/lib/git/status_shortcuts.sh @@ -114,9 +114,9 @@ git_silent_add_patch_shortcuts() { if [ -n "$1" ]; then # Expand args and process resulting set of files. IFS=$'\n' - eval for file in $(git_expand_args "$@")\; do\ - git add -p "\$file"\;\ - echo -e "# add '\$file'"\;\ + for file in $(git_expand_args "$@"); do + git add -p "$file" + echo -e "# add '$file'" done unset IFS echo "#"