Fixed git_add_patch_shortcuts

This commit is contained in:
Nathan Broadbent
2012-01-31 01:13:00 +08:00
parent 006ac0da7c
commit 7049e7fb64

View File

@@ -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 "#"