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!
This package is auto-updated.
Last update: 2026-03-24 01:19:00 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.