Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Git::Sub(3)	      User Contributed Perl Documentation	   Git::Sub(3)

NAME
       Git::Sub	- git commands imported	as System::Sub subs in the git::
       namespace

VERSION
       version 0.163320

SYNOPSIS
	   use Git::Sub	qw(clone tag push);

	   # Git commands are now Perl subs
	   git::clone 'git://github.com/dolmen/p5-Git-Sub.git';

	   git::tag -a => -m =>	"Release v$version", "v$version";

	   git::push qw(--tags origin master);

	   # Commands names with '-' are imported with '_'
	   my $master =	git::rev_parse 'release';

	   # Return in list context is lines (see System::Sub)
	   say for git::ls_tree	'master';

	   # Process lines using a callback
	   git::ls_tree	'master' => sub	{
	       my ($mode, $type, $object, $file) = split;
	       say $file;
	   };

DESCRIPTION
       Use git <http://www.git-scm.com>	commands easily	from your Perl
       program.	Each git command is imported as	a System::Sub DWIM sub.

EXAMPLES
       o   The release script <https://github.com/dolmen/angel-
	   PS1/blob/devel/dist>	of my angel-PS1
	   <https://github.com/dolmen/angel-PS1> project.

AUTHOR
       Olivier MenguA(C), "dolmen@cpan.org".

COPYRIGHT & LICENSE
       Copyright A(C) 2016 Olivier MenguA(C).

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl 5 itself.

perl v5.24.1			  2016-11-27			   Git::Sub(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | EXAMPLES | AUTHOR | COPYRIGHT & LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Git::Sub&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help