From 99e4e9dcdacb61e48dd4582e511ca7b36de71e7b Mon Sep 17 00:00:00 2001 From: Andrew Lorente Date: Thu, 20 Oct 2011 13:46:40 -0700 Subject: [PATCH] Fix a typo in a function name --- lib/git/aliases_and_bindings.sh | 2 +- lib/git/status_shortcuts.sh | 8 ++++---- test/lib/git/status_shortcuts_test.sh | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/git/aliases_and_bindings.sh b/lib/git/aliases_and_bindings.sh index b8e420b..8092fcc 100644 --- a/lib/git/aliases_and_bindings.sh +++ b/lib/git/aliases_and_bindings.sh @@ -7,7 +7,7 @@ _alias $git_alias='git' # SCM Breeze functions _alias $git_status_shortcuts_alias="git_status_shortcuts" -_alias $git_add_shortcuts_alias="git_add_shorcuts" +_alias $git_add_shortcuts_alias="git_add_shortcuts" _alias $exec_git_expand_args_alias="exec_git_expand_args" _alias $git_show_files_alias="git_show_affected_files" _alias $git_commit_all_alias='git_commit_all' diff --git a/lib/git/status_shortcuts.sh b/lib/git/status_shortcuts.sh index 8a528f1..861a59b 100644 --- a/lib/git/status_shortcuts.sh +++ b/lib/git/status_shortcuts.sh @@ -44,7 +44,7 @@ git_status_shortcuts() { # Should be used in conjunction with the git_status_shortcuts() function for 'git status'. # - 'auto git rm' behaviour can be turned off # ------------------------------------------------------------------------------- -git_add_shorcuts() { +git_add_shortcuts() { if [ -z "$1" ]; then echo "Usage: ga => git add " echo " ga 1 => git add \$e1" @@ -55,13 +55,13 @@ git_add_shorcuts() { echo " To turn off this behaviour, change the 'auto_remove' option." fi else - git_silent_add_shorcuts "$@" + git_silent_add_shortcuts "$@" # Makes sense to run 'git status' after this command. git_status_shortcuts fi } # Does nothing if no args are given. -git_silent_add_shorcuts() { +git_silent_add_shortcuts() { if [ -n "$1" ]; then # Expand args and process resulting set of files. for file in $(git_expand_args "$@"); do @@ -180,7 +180,7 @@ git_commit_all() { # Add paths or expanded args if any given, then commit all staged changes. git_add_and_commit() { - git_silent_add_shorcuts "$@" + git_silent_add_shortcuts "$@" changes=$(git diff --cached --numstat | wc -l) if [ "$changes" -gt 0 ]; then git_status_shortcuts 1 # only show staged changes diff --git a/test/lib/git/status_shortcuts_test.sh b/test/lib/git/status_shortcuts_test.sh index ac8b819..cedee73 100755 --- a/test/lib/git/status_shortcuts_test.sh +++ b/test/lib/git/status_shortcuts_test.sh @@ -212,13 +212,13 @@ test_git_status_shortcuts_max_changes() { } -test_git_add_shorcuts() { +test_git_add_shortcuts() { setupTestRepo touch a b c d e f g h i j # Show git status, which sets up env variables git_status_shortcuts > /dev/null - git_add_shorcuts 2..4 7 8 > /dev/null + git_add_shortcuts 2..4 7 8 > /dev/null git_status=$(git_status_shortcuts 1 | strip_colors) for c in b c d g h; do