An open API service indexing awesome lists of open source software.

https://github.com/ryinner/githubinfo


https://github.com/ryinner/githubinfo

git git-info php

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Info

This is a simple package for get information from git.

Informer uses local command invocation to get information about the repository. It just run shell scripts and clean messages by regexp.

---

Functions:

- `(new Informer)->getConfigUsername` - `git config user.name`, return string;
- `(new Informer)->getCurrentBranch` - `git branch` + regexp, return string;
- `(new Informer)->getLastCommitHashByOriginBranch` - `git ls-remote --heads origin` + regexp, return string;