Skip to content

Commit

Permalink
Move 'feature' command to separate executable
Browse files Browse the repository at this point in the history
  • Loading branch information
extsoft authored and rultor committed Sep 6, 2017
1 parent 2e74f21 commit 29487b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/git-elegant
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ push-after-rebase() {
push
}

feature() {
_validate "$1" "Feature name"
git-elegant pull $MASTER
git checkout -b "$1"
}

add() {
local FILES=$(git ls-files -m)
__gm "There are candidates to be added to commit:"
Expand Down
8 changes: 8 additions & 0 deletions src/main/git-elegant-feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e

default() {
_validate "$1" "Feature name"
git-elegant pull $MASTER
git checkout -b "$1"
}

0 comments on commit 29487b7

Please sign in to comment.