caherrera/gitinfo

1.0.4 2019-08-23 16:06 UTC

This package is auto-updated.

Last update: 2024-03-24 01:44:18 UTC


README

Build Status

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

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:

  1. 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