caherrera / gitinfo
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/caherrera/gitinfo
Requires
- php: ^7.1.3
- ext-json: *
- illuminate/support: ^5.8
- symfony/console: ^4.3
- symfony/process: ^4.3
Requires (Dev)
- phpunit/phpunit: ^7.5
README
This package provides an console application to obtain git information about a folder
Zero-config use
If you don't need any custom completion behaviour, you can simply add the completion command to your application:
- Install
caherrera/gitinfo
using composer by running:$ composer global require caherrera/gitinfo
How it works
for run type this command in any console
$ ~/vendor/caherrera/gitinfo/console [/path/to/scan]
Example
$ ~/vendor/caherrera/gitinfo/console $(pwd) {"commit":"a2986ed961f6aa628a647df9e8f04892c38480f3","hash":"a2986ed","created":"2019-08-21 19:21:45","author":"Carlos Herrera","email":"carlos.herrera@viajesfalabella.com","repository":"git@github.com:caherrera\/gitinfo.git","status":"[{\"file\":\"M\",\"status\":\"\"},{\"file\":\"M\",\"status\":\"\"}]","branch":"master","tag":"1.0.1","project":"gitinfo"}
this command will return a in json format