-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for aliases. Fixes #8.
Supported aliases are pulled from the git-together.aliases config variable, which (if set) should be a comma-separated list of aliases e.g. "ci,rv,m". Signed-off-by: Steve Gravrock <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -210,6 +210,21 @@ AUTHORS | |
[[ "$output" =~ "Signed-off-by: Naomi Nagata <[email protected]>" ]] | ||
} | ||
|
||
@test "aliases" { | ||
git config --local git-together.aliases m,ci,r | ||
git-together with jh nn | ||
touch foo | ||
git add foo | ||
git-together ci -m "add foo" | ||
|
||
run git show --no-patch --format="%aN <%aE>" | ||
[ "$output" = "James Holden <[email protected]>" ] | ||
run git show --no-patch --format="%cN <%cE>" | ||
[ "$output" = "Naomi Nagata <[email protected]>" ] | ||
run git show --no-patch --format=%B | ||
[[ "$output" =~ "Signed-off-by: Naomi Nagata <[email protected]>" ]] | ||
} | ||
|
||
setup() { | ||
# [ -f $BATS_TMPDIR/bin/git-together ] || cargo install --root $BATS_TMPDIR | ||
rm -rf $BATS_TMPDIR/bin | ||
|
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