-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from fortrabbit/feature/replace-cpliakas-git-…
…wrapper Replace cpliakas/git-wrapper with gitonomy/gitlib
- Loading branch information
Showing
8 changed files
with
321 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace fortrabbit\Copy\Exceptions; | ||
|
||
use yii\base\Exception; | ||
|
||
class GitException extends Exception | ||
{ | ||
} |
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,44 @@ | ||
<?php | ||
|
||
namespace fortrabbit\Copy\Services\Git; | ||
|
||
interface Client | ||
{ | ||
public function clone( | ||
string $repository, | ||
?string $directory = null, | ||
array $options = [] | ||
); | ||
|
||
public function push(string $upstream, string $branch = 'master'): string; | ||
|
||
public function pull(string $upstream, string $branch = 'master'): string; | ||
|
||
public function getLocalHead(): ?string; | ||
|
||
public function getLocalBranches(): array; | ||
|
||
public function getRemotes(?string $for = 'push'): array; | ||
|
||
public function getTracking(bool $includeBranch = false): ?string; | ||
|
||
public function checkout(string $branch); | ||
|
||
public function addRemote(string $name, ?string $url); | ||
|
||
public function setDirectory(string $directory); | ||
|
||
public function getDirectory(): string; | ||
|
||
public function init(); | ||
|
||
public function log(...$argsOrOptions): string; | ||
|
||
public function hasChanges(): bool; | ||
|
||
public function getStatus(): string; | ||
|
||
public function add(string $filepattern, array $options = []): string; | ||
|
||
public function commit(...$argsOrOptions): string; | ||
} |
Oops, something went wrong.