-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #130 implemented 1. git elegant configure renamed to configure-repository 2. command git configure-repository works like git elegant configure --local 3. Tests and README updated
- Loading branch information
1 parent
fdcc90a
commit deaefad
Showing
11 changed files
with
48 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ set -e | |
|
||
default() { | ||
boxtee git init | ||
git elegant configure --local | ||
git elegant configure-repository | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bats | ||
|
||
load addons-common | ||
load addons-read | ||
load addons-fake | ||
load addons-git | ||
|
||
fake-preconditions() { | ||
fake-pass git "elegant commands" | ||
|
||
fake-pass git "config user.name" "UserName" | ||
fake-pass git "config user.email" "UserEmail" | ||
|
||
fake-pass git "config --local core.commentChar" | ||
|
||
|
||
fake-pass git "config --local user.name UserName" | ||
fake-pass git "config --local user.email UserEmail" | ||
|
||
fake-pass git "config --local apply.whitespace fix" | ||
} | ||
|
||
teardown() { | ||
clean-fake | ||
clean-git | ||
} | ||
|
||
|
||
@test "'configure-repository': sequence of the local git configuration is correct" { | ||
init-repo | ||
check git-elegant configure-repository | ||
[ "${lines[0]}" = "your user name [Elegant Git]: " ] | ||
[ "${lines[4]}" = "your user email [[email protected]]: " ] | ||
[ "${lines[8]}" = "commit message won't start with [|]: " ] | ||
[ "${lines[12]}" = "whitespace issues on patching [fix]: " ] | ||
[ ${#lines[@]} -eq 16 ] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deaefad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
9-dbf97594
disappeared fromsrc/main/git-elegant-configure
, that's why I closed #117. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.