fix formating

pull/3/head
kevin zhuang 4 years ago
parent 2bb0f7fa30
commit 33f381d3d0

@ -26,9 +26,9 @@ function usage() {
echo -e "Stage the selected file to the dotfile gitbare repo" echo -e "Stage the selected file to the dotfile gitbare repo"
echo -e "Press escape to stop staging file\n" echo -e "Press escape to stop staging file\n"
echo -e "optional arguments:" echo -e "optional arguments:"
echo -e " -h\t\tshow this help message and exit" echo -e " -h\tshow this help message and exit"
echo -e " -f\t\tselect a file in current directory and stage it" echo -e " -f\tselect a file in current directory and stage it"
echo -e " -d\t\tselect a entire folder to stage" echo -e " -d\tselect a entire folder to stage"
} }
####################################### #######################################

@ -26,9 +26,9 @@ function usage() {
echo -e "List all tracked dotfiles and edit" echo -e "List all tracked dotfiles and edit"
echo -e "also support commit message edit\n" echo -e "also support commit message edit\n"
echo -e "optional arguments:" echo -e "optional arguments:"
echo -e " -h\t\tshow this help message and exit" echo -e " -h\tshow this help message and exit"
echo -e " -m\t\tonly display modified file" echo -e " -m\tonly display modified file"
echo -e " -c\t\tedit commit using interactive rebase instead" echo -e " -c\tedit commit using interactive rebase instead"
} }
modified='' modified=''

@ -32,11 +32,11 @@ function usage() {
echo -e "Reset/Unstage the selected staged file" echo -e "Reset/Unstage the selected staged file"
echo -e "Or reset the HEAD to certain commits by using -c flag\n" echo -e "Or reset the HEAD to certain commits by using -c flag\n"
echo -e "optional arguments:" echo -e "optional arguments:"
echo -e " -h\t\tshow this help message and exit" echo -e " -h\tshow this help message and exit"
echo -e " -a\t\tselect files and then select a commit to reset the file back to the selected comit" echo -e " -a\tselect files and then select a commit to reset the file back to the selected comit"
echo -e " -c\t\treset commit to certain commit, default --mixed flag, reset HEAD to certain commit put all changes into modified states" echo -e " -c\treset commit to certain commit, default --mixed flag, reset HEAD to certain commit put all changes into modified states"
echo -e " -S\t\treset commit using --soft flag, reset HEAD to certain commit without modify working tree" echo -e " -S\treset commit using --soft flag, reset HEAD to certain commit without modify working tree"
echo -e " -H\t\treset commit using --hard flag, reset HEAD to certain commit dicard all changes from the working tree" echo -e " -H\treset commit using --hard flag, reset HEAD to certain commit dicard all changes from the working tree"
} }
reset_commit="" reset_commit=""

@ -23,7 +23,7 @@ function usage() {
echo -e "Display interactive git status menu" echo -e "Display interactive git status menu"
echo -e "Stage, unstage, interactively\n" echo -e "Stage, unstage, interactively\n"
echo -e "optional arguments:" echo -e "optional arguments:"
echo -e " -h\t\tshow this help message and exit" echo -e " -h\tshow this help message and exit"
} }
while getopts ":h" opt; do while getopts ":h" opt; do

Loading…
Cancel
Save