Skip to content

Commit

Permalink
Update scripts to use 'git elegant' calls
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKarabaza committed Oct 10, 2017
1 parent 6947129 commit 1c95b19
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/git-elegant
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ __batch() {

usage() {
echo "git elegant <command>"
git-elegant commands
git elegant commands
# @todo #6 Describe usage of git elegant
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/git-elegant-check
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default() {
"-s" | "--staged")
git diff --cached --check
;;
*) git-elegant check --all
*) git elegant check --all
;;
esac
}
2 changes: 1 addition & 1 deletion src/main/git-elegant-clear-local
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

default() {
git-elegant pull $MASTER
git elegant pull $MASTER
local cmd="git branch -lvv | grep gone | awk {'print \$1'}"
__loop "git branch -d" $(eval "$cmd") || \
(
Expand Down
2 changes: 1 addition & 1 deletion src/main/git-elegant-feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
default() {
_validate "$1" "Feature name"
status=$(git stash save elegant-git)
git-elegant pull $MASTER
git elegant pull $MASTER
git checkout -b "$1"

if [[ "$status" =~ "Saved working directory" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions src/main/git-elegant-push-after-rebase
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
set -e

default() {
git-elegant rebase
git-elegant push
git elegant rebase
git elegant push
}

0 comments on commit 1c95b19

Please sign in to comment.