Download the PHP package antogno/gitinfo without Composer
On this page you can find all versions of the php package antogno/gitinfo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package gitinfo
GitInfo
GitInfo is a tool that lets you get information about the current Git repository.
Installation
Use the dependency manager Composer to install GitInfo.
Usage
Get the Git version:
Get any deleted file:
Get any modified file:
Get any renamed file:
Get any unmerged file:
Get any untracked file:
Get any staged file:
Get any unstaged file:
Author
Whether the given author exists or not:
Get the author of the current commit:
Get the given author, if exists:
Get the authors list:
Each of the previous three methods returns an AuthorResource
object (or a list of such).
AuthorResource
Get the author name:
Get the author email:
Get the author commits (CommitResource
list):
Branch
Whether the given branch exists or not:
Get the current branch:
Get the given branch, if exists:
Get the branches list:
Each of the previous three methods returns a BranchResource
object (or a list of such).
BranchResource
Get the author name:
Get the branch last commit (CommitResource
):
Commit
Whether a commit with the given hash exists or not:
Get the current commit:
Get the given commit, if exists:
Get the commits list:
Each of the previous three methods returns a CommitResource
object (or a list of such).
CommitResource
Get the long commit hash:
Get the short commit hash:
Get the commit message:
Get the commit date (DateTime
):
Get the commit author (AuthorResource
):
Tag
Whether the given tag exists or not:
Get the current tag, if in a tag:
Get the given tag, if exists:
Get the tags list:
Each of the previous three methods returns a TagResource
object (or a list of such).
TagResource
Get the tag name:
Get the tag last commit (CommitResource
):
Remote
Whether the given remote exists or not:
Get the remote from which the current branch is tracking:
Get the given remote, if exists:
Get the remotes list:
Each of the previous three methods returns a RemoteResource
object (or a list of such).
RemoteResource
Get the remote name:
Get the remote URL:
License
GitInfo is licensed under the terms of the Creative Commons Zero v1.0 Universal license.
For more information, see the Creative Commons website.