-
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.
Display git command before execute it
- Loading branch information
Showing
15 changed files
with
63 additions
and
54 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
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
set -e | ||
|
||
default() { | ||
git init | ||
git elegant configure --local | ||
boxtee git init | ||
boxtee git elegant configure --local | ||
} |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
set -e | ||
|
||
default() { | ||
git elegant rebase | ||
git elegant push | ||
boxtee git elegant rebase | ||
boxtee git elegant push | ||
} |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
set -e | ||
|
||
default() { | ||
git fetch --tags | ||
git rebase $RMASTER | ||
boxtee git fetch --tags | ||
boxtee git rebase $RMASTER | ||
} |
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 |
---|---|---|
|
@@ -51,19 +51,19 @@ teardown() { | |
fake-preconditions | ||
check git-elegant configure --global | ||
[ "${lines[0]}" = "your user name [UserName]: " ] | ||
[ "${lines[1]}" = "your user email [UserEmail]: " ] | ||
[ "${lines[2]}" = "commit message won't start with [|]: " ] | ||
[ "${lines[3]}" = "whitespace issues on patching [fix]: " ] | ||
[ "${lines[4]}" = "add git aliases for all 'elegant git' commands [yes]: " ] | ||
[ ${#lines[@]} -eq 5 ] | ||
[ "${lines[4]}" = "your user email [UserEmail]: " ] | ||
[ "${lines[8]}" = "commit message won't start with [|]: " ] | ||
[ "${lines[12]}" = "whitespace issues on patching [fix]: " ] | ||
[ "${lines[16]}" = "add git aliases for all 'elegant git' commands [yes]: " ] | ||
[ ${#lines[@]} -eq 17 ] | ||
} | ||
|
||
@test "'configure': sequence of the local git configuration is correct" { | ||
init-repo | ||
check git-elegant configure --local | ||
[ "${lines[0]}" = "your user name [Elegant Git]: " ] | ||
[ "${lines[1]}" = "your user email [[email protected]]: " ] | ||
[ "${lines[2]}" = "commit message won't start with [|]: " ] | ||
[ "${lines[3]}" = "whitespace issues on patching [fix]: " ] | ||
[ ${#lines[@]} -eq 4 ] | ||
[ "${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 ] | ||
} |