Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Respect some aliases when checking for achievements #48

Open
wants to merge 2 commits into from

1 participant

Dmitry Marakasov
Dmitry Marakasov

Respect git diff --staged in addition to git diff --cached (which are the same)
Respect git help [command] in addition to git [command] --help (same thing as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 2 deletions.
  1. +5 −2 git-achievements
7 git-achievements
View
@@ -155,7 +155,7 @@ function check_for_achievements
case $2 in
--help )
- unlock_achievement "Student" "Accessed the documentation for a command with git [command] --help"
+ unlock_achievement "Student" "Accessed the documentation for a command with git [command] --help or git help [command]"
return
;;
esac
@@ -232,7 +232,7 @@ function check_for_achievements
;;
diff )
case $2 in
- --cached )
+ --cached | --staged )
count_unlock_achievement "Goldsmith" "Reviewed patches before committing with git diff --cached." "diff --cached"
;;
esac
@@ -253,6 +253,9 @@ function check_for_achievements
grep )
count_unlock_achievement "Fisherman" "Look for specified patterns in the current repository with git grep." "$command"
;;
+ help )
+ unlock_achievement "Student" "Accessed the documentation for a command with git [command] --help or git help [command]"
+ ;;
imap-send )
count_unlock_achievement "Postman" "Send a collection of patches from stdin to an IMAP folder with git imap-send" "$command"
;;
Something went wrong with that request. Please try again.