Skip to content

Commit

Permalink
Remove push command
Browse files Browse the repository at this point in the history
This command is not relevant as we have `deliver-work` instead.
  • Loading branch information
extsoft committed Jul 25, 2019
1 parent b493805 commit 2a71623
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 43 deletions.
4 changes: 0 additions & 4 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- `deliver-work`
- `accept-work`
- `pull`
- `push`
- `rebase`
- `init`
- `acquire-repository`
Expand Down Expand Up @@ -82,9 +81,6 @@ git push origin --delete <remote-branch-name>
# `pull`
Downloads new updates for a local branch.

# `push`
Upload current local branch to a remote one using `force` push. If the remote branch is absent, it will be created. Pushing to remote `master` isn't allowed.

# `rebase`
Reapplies commits on top of the latest `origin/master`.

Expand Down
1 change: 0 additions & 1 deletion libexec/git-elegant-commands
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ default() {
echo "deliver-work"
echo "accept-work"
echo "pull"
echo "push"
echo "rebase"
echo "init"
echo "acquire-repository"
Expand Down
11 changes: 0 additions & 11 deletions libexec/git-elegant-push

This file was deleted.

3 changes: 1 addition & 2 deletions tests/git-elegant-commands.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ teardown() {
"deliver-work"
"accept-work"
"pull"
"push"
"rebase"
"init"
"acquire-repository"
Expand All @@ -27,7 +26,7 @@ teardown() {
for command in {0..12}; do
[ "${lines[$command]}" = "${COMMANDS[$command]}" ]
done
[ ${#lines[@]} -eq 13 ]
[ ${#lines[@]} -eq 12 ]
}

@test "'commands': default exit code is 0" {
Expand Down
25 changes: 0 additions & 25 deletions tests/git-elegant-push.bats

This file was deleted.

0 comments on commit 2a71623

Please sign in to comment.