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!

Installs: 24 700

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/noclued/githelper

1.2 2019-07-23 10:41 UTC

This package is auto-updated.

Last update: 2025-09-24 00:08:02 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.