cpliakas / git-wrapper

A PHP wrapper around the Git command line utility.
MIT License
506 stars 68 forks source link

Prepare 2.0 Release #137

Closed TomasVotruba closed 6 years ago

TomasVotruba commented 6 years ago

Related Changes

Inspiration from old fork


Changelog

# before
$git->add('*')
    ->commit('Initial commit.');

# after
$git->add('*');
$git->commit('Initial commit.');
# before
$output = $git->add('*')->getOutput();
$output = (string) $git->add('*');

# after
$output = $git->add('*');
# before
array_unshift($argsAndOptions, 'name');
GitCommand::createInstance($argsAndOptions);

# after
new GitCommand('name', $argsAndOptions);
### before
$gitWrapper->clone(...);

### after
$gitWrapper->cloneRepository(...);
TomasVotruba commented 6 years ago

@carusogabriel Thanks for review. I've added few more structural changes, it should be ready to merge now.

cpliakas commented 6 years ago

@TomasVotruba @carusogabriel Great job with the 2.0 release, I love all of the modernization and bug fixes. I very much appreciate your efforts on injecting life back into this library.

carusogabriel commented 6 years ago

@cpliakas @TomasVotruba did all the work, so :clap: to him :smile: I'll be adding some features based on @k88hudson's Git Flight Rules soon :man_technologist:

TomasVotruba commented 6 years ago

@cpliakas Thanks a lot :100: I'm glad you like those changes. Thanks for reaching back to me