From 596b370b782baa83b1916547523ce64720fbc4a3 Mon Sep 17 00:00:00 2001 From: Tyler Holien Date: Wed, 25 Apr 2012 15:01:52 -0500 Subject: [PATCH] Changed usage text to reflect '-' ranges instead of '..' ranges --- lib/git/status_shortcuts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/git/status_shortcuts.sh b/lib/git/status_shortcuts.sh index 5d4bbe3..2ba1d3d 100644 --- a/lib/git/status_shortcuts.sh +++ b/lib/git/status_shortcuts.sh @@ -60,8 +60,8 @@ git_add_shortcuts() { if [ -z "$1" ]; then echo "Usage: ga => git add " echo " ga 1 => git add \$e1" - echo " ga 2..4 => git add \$e2 \$e3 \$e4" - echo " ga 2 5..7 => git add \$e2 \$e5 \$e6 \$e7" + echo " ga 2-4 => git add \$e2 \$e3 \$e4" + echo " ga 2 5-7 => git add \$e2 \$e5 \$e6 \$e7" if [[ $ga_auto_remove == "yes" ]]; then echo -e "\nNote: Deleted files will also be staged using this shortcut." echo " To turn off this behaviour, change the 'auto_remove' option." @@ -98,8 +98,8 @@ git_add_patch_shortcuts() { if [ -z "$1" ]; then echo "Usage: gap => git add -p " echo " gap 1 => git add -p \$e1" - echo " gap 2..4 => git add -p \$e2 \$e3 \$e4" - echo " gap 2 5..7 => git add -p \$e2 \$e5 \$e6 \$e7" + echo " gap 2-4 => git add -p \$e2 \$e3 \$e4" + echo " gap 2 5-7 => git add -p \$e2 \$e5 \$e6 \$e7" else git_silent_add_patch_shortcuts "$@" # Makes sense to run 'git status' after this command. @@ -155,7 +155,7 @@ git_expand_args() { fi done } -# Execute a command with expanded args, e.g. Delete files 6 to 12: $ ge rm 6..12 +# 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() { $(git_expand_args "$@"); }