noclued/githelper

Helper for git extra info like 'get file names changed in last two commits', 'get new lines from last two commits', etc. You need to have accessable git!

1.2 2019-07-23 10:41 UTC

This package is auto-updated.

Last update: 2024-03-23 21:06:30 UTC


README

Its a simple lib for git. You need to have git available on host. Offers three methods (atm):

getFileNamesChangedSince(int $commits = 1) which will return file names of changed files since N commits

getLineAddedToFileSince(string $fileName, int $commits = 1) which will return content of lines ADDED since N commits

public function getLinesRemovedFromFileSince(string $fileName, int $commits = 1) which will return content of lines REMOVED since N commits

Constructor will check if git is available and check if given path is a git repo.