.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" 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 .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "App::Pinto::Command::diff 3pm" .TH App::Pinto::Command::diff 3pm "2022-10-16" "perl v5.34.0" "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" App::Pinto::Command::diff \- show difference between two stacks .SH "VERSION" .IX Header "VERSION" version 0.14 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& pinto \-\-root=REPOSITORY_ROOT diff [OPTIONS] LEFT [RIGHT] .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" !! \s-1THIS COMMAND IS EXPERIMENTAL\s0 !! .PP This command shows the difference between two stacks or revisions, presented in a format similar to diff[1]. .SH "COMMAND ARGUMENTS" .IX Header "COMMAND ARGUMENTS" Command arguments are the names of the stacks or revision IDs to compare. If you specify a stack name, the head revision of that stack will be used. If you only specify one argument, then it is assumed to be the \s-1RIGHT\s0 and the head revision of the default stack will be used as the \s-1LEFT.\s0 Revision IDs can be truncated to uniqueness. .SH "COMMAND OPTIONS" .IX Header "COMMAND OPTIONS" .IP "\-\-diff\-style=STYLE" 4 .IX Item "--diff-style=STYLE" Controls the style of the diff reports. \s-1STYLE\s0 must be either \f(CW\*(C`concise\*(C'\fR or \&\f(CW\*(C`detailed\*(C'\fR. Concise reports show only one record for each distribution added or deleted. Detailed reports show one record for every package added or deleted. .Sp The default style is \f(CW\*(C`concise\*(C'\fR. However, the default style can be changed by setting the \f(CW\*(C`PINTO_DIFF_STYLE\*(C'\fR environment variable to your preferred \s-1STYLE.\s0 This variable affects the default style for diff reports generated by all other commands too. .IP "\-\-format=FORMAT" 4 .IX Item "--format=FORMAT" A \f(CW\*(C`printf\*(C'\fR\-style format string describing how individual lines of the diff are to be printed. For the description of the \f(CW\*(C`FORMAT\*(C'\fR, please refer to \&\*(L"\s-1COMMAND OPTIONS\*(R"\s0 in App::Pinto::Command::list. .Sp The default format for \f(CW\*(C`concise\*(C'\fR diffs is \f(CW\*(C`%o[%F] %a/%f\*(C'\fR. The default format for \f(CW\*(C`detailed\*(C'\fR diffs is \f(CW\*(C`%o[%F] %\-40p %12v %a/%f\*(C'\fR. .SS "\s-1EXAMPLES\s0" .IX Subsection "EXAMPLES" .Vb 5 \& pinto diff foo # Compare of head of default stack with head of foo stack \& pinto diff foo bar # Compare heads of both foo and bar stack. \& pinto diff 1ae834f # Compare head of default stack with revision 1ae834f \& pinto diff foo 1ae834f # Compare head of foo stack with revision 1ae834f \& pinto diff 663fd2a 1ae834f # Compare revision 663fd2a with revision 1ae834f .Ve .SH "AUTHOR" .IX Header "AUTHOR" Jeffrey Ryan Thalhammer .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.