Browse files

Merge pull request #24 from tylerholien/master

Changed usage text to reflect '-' ranges instead of '..' ranges
  • Loading branch information...
2 parents b1aba14 + 596b370 commit 4fb9123f191d9533a11979a6fd87442e96204704 @ndbroadbent committed May 7, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/git/status_shortcuts.sh
View
10 lib/git/status_shortcuts.sh
@@ -60,8 +60,8 @@ git_add_shortcuts() {
if [ -z "$1" ]; then
echo "Usage: ga <file> => git add <file>"
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 <file> => git add -p <file>"
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 "$@"); }

0 comments on commit 4fb9123

Please sign in to comment.