From 37d6012791166d35cd0287bd3234d40cb919b375 Mon Sep 17 00:00:00 2001 From: LeeW Date: Sat, 19 Sep 2015 09:54:53 +0800 Subject: [PATCH] Replace "export" option with "replace" in git-ignore-io --- bin/git-ignore-io | 10 +++++----- man/git-ignore-io.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/git-ignore-io b/bin/git-ignore-io index 18c5665..6b616f2 100755 --- a/bin/git-ignore-io +++ b/bin/git-ignore-io @@ -46,7 +46,7 @@ gi() { curl -L -s $gitignore_io_url/"$1" } -gi_export() { +gi_replace() { gi "$1" > .gitignore } @@ -58,7 +58,7 @@ show_usage() { echo "Usage:" echo " git ignore-io ... Show gitignore template" echo " [-a|--append] ... Append new .gitignore content to .gitignore under the current directory" - echo " [-e|--export] ... Export new .gitignore to the current directory (The old one will be replaced)" + echo " [-r|--replace] ... Export new .gitignore to the current directory (The old one will be replaced)" echo " [-l|--list-in-table] Print available types in table format" echo " [-L|--list-alphabetically] Print available types in alphabetical order " echo " [-s|--search] Search word in available types" @@ -82,7 +82,7 @@ if [[ $# -eq 0 ]]; then show_usage else case $1 in - -a|--append|-e|--export) + -a|--append|-r|--replace) opt=$1 shift if [[ $# -eq 0 ]]; then @@ -97,8 +97,8 @@ else -a|--append) gi_append "$gi_to_curl" ;; - -e|--export) - gi_export "$gi_to_curl" + -r|--replace) + gi_replace "$gi_to_curl" ;; esac diff --git a/man/git-ignore-io.md b/man/git-ignore-io.md index a582f39..3bf8c23 100644 --- a/man/git-ignore-io.md +++ b/man/git-ignore-io.md @@ -11,7 +11,7 @@ Get sample gitignore file from [gitignore.io](https://www.gitignore.io) ## OPTIONS [-a|--append] ... Append new .gitignore content to .gitignore under the current directory -[-e|--export] ... Export new .gitignore to the current directory (The old one will be replaced) +[-r|--replace] ... Export new .gitignore to the current directory (The old one will be replaced) [-l|--list-in-table] Print available types in table format [-L|--list-alphabetically] Print available types in alphabetical order [-s|--search] Search word in available types