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!

Maintainers

Package info

github.com/noclued/githelper

pkg:composer/noclued/githelper

Statistics

Installs: 27 112

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.2 2019-07-23 10:41 UTC

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.