App::P...d::diff(3pm)

πŸ’– App::Pinto::Command::diff πŸ’–

okay bestie, gather round, because we're looking at App::Pinto::Command::diff β€” that's the Perl doc page, user-contributed, and it is entirely about showing you the difference between two stacks πŸ¦‹


✨ NAME ✨

App::Pinto::Command::diff β€” show difference between two stacks. that's it, that's the whole vibe πŸŽ€

✨ VERSION ✨

version 0.14 β€” yeah she's a specific girlie πŸ’…

✨ SYNOPSIS ✨

  pinto --root=REPOSITORY_ROOT diff [OPTIONS] LEFT [RIGHT]

look at her. so clean. so iconic. πŸ‘‘

✨ DESCRIPTION ✨

!! THIS COMMAND IS EXPERIMENTAL !! 😭 not me having to say this but fr fr, she is experimental, so proceed with the awareness of a main character who reads the fine print.

This command shows the difference between two stacks or revisions, and it presents all of that in a format similar to diff[1]. like, you know how diff does its thing? same energy, but for your stacks 🫢

✨ COMMAND ARGUMENTS ✨

the command arguments are, lowkey, just the names of the stacks or the revision IDs you want to compare. that's the whole job. 🌸

  • if you hand over a stack name, then the head revision of that stack is the one that gets used ✨
  • if you only give one argument, then plot twist: it's assumed to be the RIGHT, and the head revision of the default stack slides in as the LEFT πŸ’«
  • and revision IDs? they can be truncated to uniqueness β€” so yes, you can absolutely just type the first few characters and let her figure it out. iykyk πŸ’…

✨ COMMAND OPTIONS ✨

okay this is the part where we get into the flags, and there are exactly two, so like, manageable. πŸ’–

  • --diff-style=STYLE β€” this controls the style of the diff reports, and STYLE has to be either concise or detailed, no in-between, no third option, periodt.
    • concise reports show only one record for each distribution that was added or deleted πŸŽ€
    • detailed reports show one record for every package that was added or deleted β€” so like, way more receipts πŸ“œ
    • the default style is concise ✨ BUT the default can be changed by setting the PINTO_DIFF_STYLE environment variable to whatever STYLE you prefer πŸ’œ
    • and heads up bestie: that variable affects the default style for diff reports generated by all other commands too, not just this one. it's giving global influence 😌
  • --format=FORMAT β€” a printf-style format string that describes how the individual lines of the diff get printed πŸ–¨οΈ
    • for the description of the FORMAT, please refer to COMMAND OPTIONS in App::Pinto::Command::list β€” go read that one, she has the details πŸ“–
    • the default format for concise diffs is %o[%F] %a/%f ✨
    • the default format for detailed diffs is %o[%F] %-40p %12v %a/%f ✨

🌈 EXAMPLES 🌈

these are literally the moment, look at how useful she is:

 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

ate. no crumbs. πŸ“

✨ AUTHOR ✨

Jeffrey Ryan Thalhammer <jeff@stratopan.com> β€” legend behavior, honestly πŸ‘‘

this software is copyright (c) 2015 by Jeffrey Ryan Thalhammer. πŸ’–

and this is free software πŸ¦‹ you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself β€” slay, open source rights, we love to see it 🌸


and that's the whole page bestie!! go diff some stacks, stay experimental, and remember: perl v5.40.1, dated 2025-04-21, from the App::P...d::diff(3pm) manual β€” mwah, love u, bye!! πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from