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: 16 784
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
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.