| 1 | package Git::Raw::Diff::Stats; | ||
| 2 | 1 | $Git::Raw::Diff::Stats::VERSION = '0.90'; | |
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use Git::Raw; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Git::Raw::Diff::Stats - Git diff statistics class | ||
| 11 | |||
| 12 | =head1 VERSION | ||
| 13 | |||
| 14 | version 0.90 | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | A L<Git::Raw::Diff::Stats> represents diff statistics. | ||
| 19 | |||
| 20 | B<WARNING>: The API of this module is unstable and may change without warning | ||
| 21 | (any change will be appropriately documented in the changelog). | ||
| 22 | |||
| 23 | =head1 METHODS | ||
| 24 | |||
| 25 | =head2 deletions( ) | ||
| 26 | |||
| 27 | Total number of deletions in the diff. | ||
| 28 | |||
| 29 | =head2 insertions( ) | ||
| 30 | |||
| 31 | Total number of insertions in the diff. | ||
| 32 | |||
| 33 | =head2 files_changed( ) | ||
| 34 | |||
| 35 | Total number of files changed in the diff. | ||
| 36 | |||
| 37 | =head2 buffer( [\%options] ) | ||
| 38 | |||
| 39 | =over 4 | ||
| 40 | |||
| 41 | =item * "flags" | ||
| 42 | |||
| 43 | Flags for generating the diff stats buffer. Valid values include: | ||
| 44 | |||
| 45 | =over 8 | ||
| 46 | |||
| 47 | =item * "full" | ||
| 48 | |||
| 49 | Full statistics similar to core git's C<--stat>. | ||
| 50 | |||
| 51 | =item * "short" | ||
| 52 | |||
| 53 | Short statistics similar to core git's C<--shortstat>. | ||
| 54 | |||
| 55 | =item * "number" | ||
| 56 | |||
| 57 | Number statistics similar to core git's C<--numstat>. | ||
| 58 | |||
| 59 | =item * "summary" | ||
| 60 | |||
| 61 | Include extended header information such as creations, renames and mode changes. | ||
| 62 | |||
| 63 | =back | ||
| 64 | |||
| 65 | =back | ||
| 66 | |||
| 67 | =head1 AUTHOR | ||
| 68 | |||
| 69 | Alessandro Ghedini <alexbio@cpan.org> | ||
| 70 | |||
| 71 | Jacques Germishuys <jacquesg@cpan.org> | ||
| 72 | |||
| 73 | =head1 LICENSE AND COPYRIGHT | ||
| 74 | |||
| 75 | Copyright 2014 Alessandro Ghedini. | ||
| 76 | |||
| 77 | This program is free software; you can redistribute it and/or modify it | ||
| 78 | under the terms of either: the GNU General Public License as published | ||
| 79 | by the Free Software Foundation; or the Artistic License. | ||
| 80 | |||
| 81 | See http://dev.perl.org/licenses/ for more information. | ||
| 82 | |||
| 83 | =cut | ||
| 84 | |||
| 85 | 1 | 1; # End of Git::Raw::Diff::Stats | |