2017 © Pedro Peláez
 

library git-log-format

Format changelog-like git logs

image

violinist-dev/git-log-format

Format changelog-like git logs

  • Thursday, November 23, 2017
  • by eiriksm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,598 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

git-log-format

Packagist Packagist Coverage Status Violinist enabled, (*1)

A convenience package to get formatted versions of the output of git log --oneline., (*2)

This is part of what powers the changelogs in the messages from Violinist.io., (*3)

Installation

composer require violinist-dev/git-log-format

Usage

Somehow get a string output from a git log. A command line way to do so is the following:, (*4)

git log abababa..fefefef --oneline

In the above example, abababa and fefefef are both hashes in the commit history., (*5)

The output would be somewhat like this:, (*6)

fefefef Fix bugs and add tests
cdcdcdc Release features and probably introduce bugs

Then, pass the output to this package:, (*7)

$data = \Violinist\GitLogFormat\ChangeLogData::createFromString('fefefef Fix bugs and add tests
cdcdcdc Release features and probably introduce bugs');
// Now add some info about what the source of the log is. Like so:
$data->setGitSource('https://github.com/myname/mypackage');
// Then get convenient output back, with links to the actual commits:
print $data->getAsMarkdown();
// Prints:
// - [fefefef](https://github.com/myname/mypackage/commit/fefefef) `Fix bugs and add tests`
// - [cdcdcdc](https://github.com/myname/mypackage/commit/cdcdcdc) `Release features and probably introduce bugs`

The Versions

23/11 2017

dev-master

9999999-dev

Format changelog-like git logs

  Sources   Download

The Development Requires

20/07 2017

0.0.1

0.0.1.0

Format changelog-like git logs

  Sources   Download

The Development Requires