Export git log as JSON
Once installed, you can run git-log-json
by issuing:
php git-log-json.phar [project directory to export]
You can grab a copy of clue/git-log-json in either of the following ways.
You can simply download a pre-compiled and ready-to-use version as a Phar to any directory:
$ wget http://www.lueck.tv/git-log-json/git-log-json.phar
If you prefer a global (system-wide) installation without having to type the
.phar
extension each time, you may invoke:$ chmod 0755 git-log-json.phar $ sudo mv git-log-json.phar /usr/local/bin/git-log-jsonYou can verify everything works by running:
$ git-log-json
There's no separate update
procedure, simply overwrite the existing phar with the new version downloaded.
The manual way to install git-log-json
is to clone (or download) this repository
and use composer to download its dependencies.
Obviously, for this to work, you'll need PHP, git and curl installed:
$ sudo apt-get install php5-cli git curl
$ git clone https://github.com/clue/git-log-json.git
$ curl -s https://getcomposer.org/installer | php
$ php composer.phar install
If you want to build the above mentioned
git-log-json.phar
yourself, you have to install clue/phar-composer and can simply invoke:$ php phar-composer.phar build ~/workspace/git-log-json
If you have followed the above install instructions, you can update git-log-json
by issuing the following two commands:
$ git pull
$ php composer.phar install
MIT-licensed