sebastianfeldmann/git
PHP library to access and interact with Git repositories. Provides a simple API for common Git commands and info (status, log, branches, tags), ideal for build scripts, CI tooling, and automation where you need Git data without shelling out manually.
Full Changelog: https://github.com/sebastianfeldmann/git/compare/3.15.3...3.16.0
Full Changelog: https://github.com/sebastianfeldmann/git/compare/3.14.1...3.14.2
Full Changelog: https://github.com/sebastianfeldmann/git/compare/3.14.0...3.14.1
git var functionality$config = $repo->getConfigOperator();
$vars = $config->getVars();
print_r($vars);
Also supported are
Config::hasVar(string $name): bool
Config::getVar(string $name): string
Config::getVarSafely(string $name, string $default = ''): string
Fix iterable return types
Fixed a typed property access problem
Load of missing types added
Detect hooks directory by respecting the core.hooksPath config setting
git fetch command by @pkruithof in https://github.com/sebastianfeldmann/git/pull/43Full Changelog: https://github.com/sebastianfeldmann/git/compare/3.12.0...3.12.1
Add comment access and validation methods
Add --diff-filter option to Log
Add reflog functionality to the LogOperator
Bugfix release :)
Add new Info::getRemoteBranches method
Switched back from short arrow to closure because of PHP 7.2
Allow to check multiple suffixes at once with Index::getStagedFilesOfTypes
Allow to filter the diff changed file set by file type (suffix)
Allow detection of squash and fixup commits
Fix issue #38 - thanks to @Chemiker90
Do not ignore permission errors while validating the HEAD commit
Add some type hints
Change the diff-filter from getStagedFiles and getStagedFilesOfType from AM to ACMR
Add new cloning functionality - thanks to @icanhazstring
$cloner = new Cloner();
$repo = $cloner->clone('git@github.com:sebastianfeldmann/git.git');
...
Make sure the right diff algorithm is used - thanks to @ramsey
Add StatusOperator to handle git status based commands
Add submodule repository support
ls-tree functionalitycompareIndexTo feature--unified option to git diffHow can I help you explore Laravel packages today?