ryinner/githubinfo

simple package for get info from git

Maintainers

Package info

github.com/ryinner/githubinfo

pkg:composer/ryinner/githubinfo

Statistics

Installs: 4 218

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2024-04-05 06:18 UTC

This package is auto-updated.

Last update: 2026-03-05 10:51:02 UTC


README

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;