Skip to content

Commit

Permalink
Remove add command
Browse files Browse the repository at this point in the history
We don't need this command as we use another approach in `save-work`.
  • Loading branch information
extsoft committed Jul 26, 2019
1 parent d3b357e commit 8dffecb
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 37 deletions.
4 changes: 0 additions & 4 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
- `deliver-work`
- `accept-work`
- `pull`
- `add`
- `clear-local`
- `configure-repository`

Expand Down Expand Up @@ -105,9 +104,6 @@ git push origin --delete <remote-branch-name>
# `pull`
Downloads new updates for a local branch.

# `add`
Adds file contents to the index interactively.

# `clear-local`
Removes all local branches which don't have remote tracking branches.

Expand Down
10 changes: 0 additions & 10 deletions libexec/git-elegant-add

This file was deleted.

1 change: 0 additions & 1 deletion libexec/git-elegant-commands
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ default() {
echo "deliver-work"
echo "accept-work"
echo "pull"
echo "add"
echo "clear-local"
echo "configure-repository"
echo "commands"
Expand Down
20 changes: 0 additions & 20 deletions tests/git-elegant-add.bats

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 @@ -16,7 +16,6 @@ teardown() {
"deliver-work"
"accept-work"
"pull"
"add"
"clear-local"
"configure-repository"
"commands"
Expand All @@ -25,7 +24,7 @@ teardown() {
for command in {0..12}; do
[ "${lines[$command]}" = "${COMMANDS[$command]}" ]
done
[ ${#lines[@]} -eq 11 ]
[ ${#lines[@]} -eq 10 ]
}

@test "'commands': default exit code is 0" {
Expand Down

0 comments on commit 8dffecb

Please sign in to comment.