Name : perl-Git
| |
Version : 0.42
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 17:21:12
|
Group : Development/Libraries/Perl
| Source RPM : perl-Git-0.42-lp155.1.1.src.rpm
|
Size : 0.26 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl interface to the Git version control system
|
Description :
[MAINTAINER NOTE: This is Git.pm, plus the other files in the perl/Git directory, from github\'s git/git, which is a mirror of the git source. I (cpan msouth, or current maintainer) update the VERSION string (necessary on CPAN because of another CPAN distribution that confused the CPAN toolchain about which was the actual official Git.pm), add this explanatory paragraph, and use Dist::Zilla to package and release on CPAN. The only reason that I know of that you would need this is if you are using something like Git::Hooks and you are using a perlbrewed (or otherwise separate) perl from the one git is using on your system (e.g. if you have a dev perl that’s separate from system perl, and git uses the system perl. Then the Git.pm gets installed in the system lib and you have no way of getting it from CPAN, so your code--that uses modules that depend on Git.pm--doesn’t work). I try to keep this up to date, so that if you do pull this from CPAN it will be, hopefully, identical in functionality to the Git.pm and Git/*.pm from the git distribution. If that is not the case, contact me and I\'ll look into it.]
This module provides Perl scripts easy way to interface the Git version control system. The modules have an easy and well-tested way to call arbitrary Git commands; in the future, the interface will also provide specialized methods for doing easily operations which are not totally trivial to do over the generic command interface.
While some commands can be executed outside of any context (e.g. \'version\' or \'init\'), most operations require a repository context, which in practice means getting an instance of the Git object using the repository() constructor. (In the future, we will also get a new_repository() constructor.) All commands called as methods of the object are then executed in the context of the repository.
Part of the \"repository state\" is also information about path to the attached working copy (unless you work with a bare repository). You can also navigate inside of the working copy using the \'wc_chdir()\' method. (Note that the repository object is self-contained and will not change working directory of your process.)
TODO: In the future, we might also do
my $remoterepo = $repo->remote_repository (Name => \'cogito\', Branch => \'master\'); $remoterepo ||= Git->remote_repository (\'http://git.or.cz/cogito.git/\'); my AATTrefs = $remoterepo->refs();
Currently, the module merely wraps calls to external Git tools. In the future, it will provide a much faster way to interact with Git by linking directly to libgit. This should be completely opaque to the user, though (performance increase notwithstanding).
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-G/15.5/noarch |