.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Git::Raw::Diff::Delta 3pm" .TH Git::Raw::Diff::Delta 3pm "2018-05-15" "perl v5.26.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Git::Raw::Diff::Delta \- Git diff delta class .SH "VERSION" .IX Header "VERSION" version 0.79 .SH "DESCRIPTION" .IX Header "DESCRIPTION" A Git::Raw::Diff::Delta represents a delta in the diff between two entities. .PP \&\fB\s-1WARNING\s0\fR: The \s-1API\s0 of this module is unstable and may change without warning (any change will be appropriately documented in the changelog). .SH "METHODS" .IX Header "METHODS" .SS "status( )" .IX Subsection "status( )" Retrieve the status of the delta. Returns one of the following: .IP "\(bu" 4 \&\*(L"unmodified\*(R" .Sp No changes. .IP "\(bu" 4 \&\*(L"added\*(R" .Sp The entry does not exist in the old version. .IP "\(bu" 4 \&\*(L"deleted\*(R" .Sp The entry does not exist in the new version. .IP "\(bu" 4 \&\*(L"modified\*(R" .Sp The entry content changed between the old and new versions. .IP "\(bu" 4 \&\*(L"renamed\*(R" .Sp The entry was renamed between the old and new versions. .IP "\(bu" 4 \&\*(L"copied\*(R" .Sp The entry was copied from another old entry. .IP "\(bu" 4 \&\*(L"ignored\*(R" .Sp The entry is an ignored item in the working directory. .IP "\(bu" 4 \&\*(L"untracked\*(R" .Sp The entry is an untracked item in the working directory. .IP "\(bu" 4 \&\*(L"type_change\*(R" .Sp The type of the entry changed between the old and new versions. .IP "\(bu" 4 \&\*(L"unreadable\*(R" .Sp The entry is unreadable. .IP "\(bu" 4 \&\*(L"conflicted\*(R" .Sp The entry represents a conflict. .SS "flags( )" .IX Subsection "flags( )" Retrieve the flags associated with the delta. Returns an array reference with zero or more of the following: .IP "\(bu" 4 \&\*(L"binary\*(R" .Sp Files treated as binary data. .IP "\(bu" 4 \&\*(L"valid_id\*(R" .Sp \&\f(CW"id"\fR value is known correct. .SS "similarity( )" .IX Subsection "similarity( )" Retrieve the similarity score between 0 and 100 between \f(CW"old_file"\fR and \f(CW"new_file"\fR. .SS "file_count( )" .IX Subsection "file_count( )" Retrieve the number of files in the delta. .SS "old_file( )" .IX Subsection "old_file( )" The \f(CW"old_file"\fR represents the \f(CW"from"\fR side of the diff. Returns a Git::Raw::Diff::File object. .SS "new_file( )" .IX Subsection "new_file( )" The \f(CW"new_file"\fR represents to \f(CW"to"\fR side of the diff. Returns a Git::Raw::Diff::File object. .SH "AUTHOR" .IX Header "AUTHOR" Alessandro Ghedini .PP Jacques Germishuys .SH "LICENSE AND COPYRIGHT" .IX Header "LICENSE AND COPYRIGHT" Copyright 2014 Alessandro Ghedini. .PP This program is free software; you can redistribute it and/or modify it under the terms of either: the \s-1GNU\s0 General Public License as published by the Free Software Foundation; or the Artistic License. .PP See http://dev.perl.org/licenses/ for more information.