The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HiD::Generator::GitRepositories::GitRepository - HiD GitRepository Class

VERSION

version 0.1

ATTRIBUTES

git_dir

the path to the git directory

gitcmd

the full path to the git command

bare

is the git repository a bare repository

name

the name of the repository

branches

all the available branches

languages

all the languages used in the repository

METHODS

isGit

tests if the given directory is a valid git repository

parse_branches

parses all the available branches

hasBranch

method search for a specific branch

  hasbranch("heads/master")

getBranchRef

return the reference of a specific branch

getFileRef

return the reference to a file in a branch

hasMetaData

checks of a metadata branch exist and information is available

tags

returns all the tags for this repository

description

returns the short description of the repository

hasLanguage

checks if the project has this kind of programming language

languages

returns an array of programming languages used within the repository

lastActivity

  returns a string with last activity information

lastChange

returns a DateTime object identifying the last commit within the repository

lastChangeBranch

returns a DateTime object identifying the last change in a branch

getFileLog

return log entries of a specific branch and file

getTree

return the tree of the given branch and root

getBlob

return the blob of a file reference

AUTHOR

Dominik Meyer <dmeyer@federationhq.de>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2018 by Dominik Meyer.

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991